MV [MV] Let's get multi-threaded: Streaming audio!

Opus Audio Streaming

This is an RPG Maker MV plugin that uses web workers to stream Opus audio.

Opus is the successor to Vorbis, the audio technology used in MV/MZ. You can create smaller files that sound just as good.

Link to Github project with plugin files & demo

Is this ready for production?

NO! This is a hacked-together proof-of-concept. It is lacking the features of a mature audio system. There's no way to seek to different parts of a song, or even to adjust the volume.

I'm not sure that my implementation actually performs better than the default engine. I might have to hack it a little more to ensure the streaming starts as soon as possible.

---------------

Vorbis Audio Streaming


This is an RPG Maker MV plugin that uses an Audio Worklet to decode an ogg/vorbis audio stream.

Link to Github project with plugin files & demo

Years ago, krmbn0576 released a plugin to stream Vorbis audio. It works pretty well on Chromium browsers, but in other environments, it generates a lot of noise.

I've ported the original code from using a web worker to using an audio worklet. More work is needed to address the noise problems.
When you say "underlying library" do you mean Opus, or this plugin?
To clarify, this is plugin is an implementation of fetch-stream-audio, which has the component opus-stream-decoder, which has the issue that it cannot seek forward in a file.

So the issues are in the plugin, not Opus.

Original thread: https://forums.rpgmakerweb.com/threads/mv-lets-get-multi-threaded-streaming-audio.125300/