RustAudio / rodio

Rust audio playback library
Apache License 2.0
1.66k stars 214 forks source link

Volume change of Sink on bare wasm32 not transfered to its currently playing audio #540

Closed benjamin-sieffert closed 5 months ago

benjamin-sieffert commented 5 months ago

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.

benjamin-sieffert commented 5 months ago

User error.