Skip to content

Commit 4a17b0a

Browse files
committed
Use MixerReset flag where possible
Unfortunately it doesn't seem to be usable for pause operations, so I've left the old method in place for that.
1 parent a891e0a commit 4a17b0a

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)