This issue is about wasm32-unknown-unknown – functionality is fine on native Linux and Windows.
(And wasm32-emscripten does not work at all due to upstream https://github.com/RustAudio/cpal/issues/810)
I am using a Sink to play Decoder::new_vorbis(Cursor::new(bytes))?.repeat_infinite().
On wasm then, when calling set_volume(vol) on the sink, the volume of the audio is not changing.
It works correctly on "idle" sinks though, meaning changed volume reflects in the next sound appended to them.
This issue is about
wasm32-unknown-unknown
– functionality is fine on native Linux and Windows. (And wasm32-emscripten does not work at all due to upstream https://github.com/RustAudio/cpal/issues/810)I am using a
Sink
to playDecoder::new_vorbis(Cursor::new(bytes))?.repeat_infinite()
. On wasm then, when callingset_volume(vol)
on the sink, the volume of the audio is not changing. It works correctly on "idle" sinks though, meaning changed volume reflects in the next sound appended to them.