diff --git a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp index 32e737fa46..a70594c8cc 100644 --- a/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp +++ b/stepmania/src/arch/Sound/RageSoundDriver_Generic_Software.cpp @@ -128,7 +128,9 @@ void RageSound_Generic_Software::Mix( int16_t *buf, int frames, int64_t frameno, /* Note that, until we call advance_read_pointer, we can safely write to p[0]. */ const int frames_to_read = min( frames_left, p[0]->frames_in_buffer ); - mix.write( p[0]->p, frames_to_read * channels, s.volume, got_frames*channels ); + mix.SetVolume( s.volume ); + mix.SetWriteOffset( got_frames*channels ); + mix.write( p[0]->p, frames_to_read * channels ); SOUNDMAN->CommitPlayingPosition( s.sound_id, frameno+got_frames, p[0]->position, frames_to_read );