Audio Output API
Current version of the module : https://code.videolan.org/b1ue/vlc/-/tree/wasm.aout
The idea is that the Audio API that vlc.js uses should not be in the module code. We can use this, to have a c file that implements functions to :
-
create the audio context in the main thread, with parameters like sample rate and number of channels (this is the part done by the AWNode class in the previous version.
-
write to / read from the ring buffer. This part must also work from a pthread.
-
set the volume