You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have an AudioChannel called my_audio_channel with volume 0.5 let's say.
The fix works if you do my_audio_channel.play(my_handle_audio_source).with_volume(0.2);, it would set the volume to 0.1, as expected.
But if you do:
let my_handle_audio_instance = my_audio_channel.play(my_handle_audio_source).looped().paused().handle()///.../// Then in another systemfnother_system(mutaudio_instances:ResMut<Assets<AudioInstance>>,//...){//... get my_handle_audio_instance somehowlet sound = audio_instances.get_mut(my_handle_audio_instance).unwrap();
sound.resume(AudioTween::default());
sound.set_volume(0.2,AudioTween::default());}
then the volume will be set to 0.2 instead, I think, I do basically that and when the volume of the channel is 0. I still hear the sound.