aboutsummaryrefslogtreecommitdiffstats
path: root/src/media
diff options
context:
space:
mode:
Diffstat (limited to 'src/media')
-rw-r--r--src/media/UAudioPlayback_SoftMixer.pas6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/media/UAudioPlayback_SoftMixer.pas b/src/media/UAudioPlayback_SoftMixer.pas
index 306b83a9..11df4df5 100644
--- a/src/media/UAudioPlayback_SoftMixer.pas
+++ b/src/media/UAudioPlayback_SoftMixer.pas
@@ -449,7 +449,8 @@ var
Mixer: TAudioMixerStream;
begin
// only paused streams are not flushed
- NeedsRewind := not (Status = ssPaused);
+ if (Status = ssPaused) then
+ NeedsRewind := false;
// rewind if necessary. Cases that require no rewind are:
// - stream was created and never played
@@ -921,7 +922,8 @@ begin
LockSampleBuffer();
SourceStream.Position := Time;
- NeedsRewind := not (Status = ssStopped);
+ if (Status = ssStopped) then
+ NeedsRewind := false;
// do not use outdated data
FlushBuffers();