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
{{ message }}
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.
Reproducing the problem:
1. start to play voice file.
2. change music volume.
I am expecting to hear volume changing real-time.
Instead of that, I need to stop playing file, the next, change volume and start
playing again.
<code>
SoundController soundController = new SoundController();
Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
"url/to/your/sound/file.mp3");
sound.setVolume(20);
sound.play(); //File has being loaded from server and is playing some music.
//After some time I am changing volume.
sound.setVolume(100); //In that place volume are not going to change. It has
the same value(20). If I press stop and play it will be 100.
</code>
Original issue reported on code.google.com by [email protected] on 7 Jul 2011 at 9:41
The text was updated successfully, but these errors were encountered:
This appears to depend on the implementation used. For example, Html5Sound
updates on the fly:
audio.getAudioElement().setVolume(volume / 100d);
as does FlashSound:
voicesMovie.setVolume(soundNumber, volume);
and NativeSound:
elem.setAttribute("volume", "" + volume);
However, WebAudioSound's setVolume() only modifies the internal state variable
without updating the currently playing sound's gain node.
I am not sure if the API makes any guarantees as to behaviour, but it's
troublesome that the different implementations are so different.
Original issue reported on code.google.com by
[email protected]
on 7 Jul 2011 at 9:41The text was updated successfully, but these errors were encountered: