From 4d414b0a788982775b0c8081b888156ad6a10497 Mon Sep 17 00:00:00 2001 From: tobigun Date: Wed, 21 Apr 2010 22:47:23 +0000 Subject: fixed bug in SDL/Portaudio playback stream: - positioning was broken in revision 1661 (9.4.2009, a long time) git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2269 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/media/UAudioPlayback_SoftMixer.pas | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/media/UAudioPlayback_SoftMixer.pas') 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(); -- cgit v1.2.3