Skip to content

Commit 7002c22

Browse files
committed
Use MixerReset flag where possible
1 parent c430cea commit 7002c22

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

osu.Framework/Audio/Mixing/Bass/BassAudioMixer.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,7 @@ public bool ChannelSetPosition(IBassAudioChannel channel, long position, Positio
196196
if (ChannelIsActive(channel) == PlaybackState.Stopped)
197197
ChannelPause(channel, true);
198198

199-
bool result = BassMix.ChannelSetPosition(channel.Handle, position, mode);
200-
201-
// Perform a flush so that ChannelGetPosition() immediately returns the new value.
202-
flush();
203-
204-
return result;
199+
return BassMix.ChannelSetPosition(channel.Handle, position, mode | PositionFlags.MixerReset);
205200
}
206201

207202
/// <summary>

0 commit comments

Comments
 (0)