update stream before setting the new gain. (nw)

This commit is contained in:
smf- 2016-10-06 16:42:58 +01:00
parent 38d6d6ace4
commit 4227f6052a

View File

@ -48,5 +48,6 @@ void filter_volume_device::sound_stream_update(sound_stream &stream, stream_samp
void filter_volume_device::flt_volume_set_volume(float volume)
{
m_stream->update();
m_gain = (int)(volume * 256);
}