aboutsummaryrefslogtreecommitdiff
path: root/backends/audiocd/win32
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-13 14:30:36 +0100
committerJohannes Schickel2016-03-13 15:45:19 +0100
commit5e0b136992c45cbc68d2c8b1e0c61a9e7cce34cb (patch)
treec52234d4b2db5a384a149d5292b44713ec5520f9 /backends/audiocd/win32
parent5340df3faf9ee73bc1102ebb5f95c5d82c37df7f (diff)
downloadscummvm-rg350-5e0b136992c45cbc68d2c8b1e0c61a9e7cce34cb.tar.gz
scummvm-rg350-5e0b136992c45cbc68d2c8b1e0c61a9e7cce34cb.tar.bz2
scummvm-rg350-5e0b136992c45cbc68d2c8b1e0c61a9e7cce34cb.zip
BACKENDS: Fill buffer at start of AudioCD playback.
As suggested by clone2727.
Diffstat (limited to 'backends/audiocd/win32')
-rw-r--r--backends/audiocd/win32/win32-audiocd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/audiocd/win32/win32-audiocd.cpp b/backends/audiocd/win32/win32-audiocd.cpp
index 2fbf9c8810..97c45a4946 100644
--- a/backends/audiocd/win32/win32-audiocd.cpp
+++ b/backends/audiocd/win32/win32-audiocd.cpp
@@ -96,7 +96,9 @@ private:
Win32AudioCDStream::Win32AudioCDStream(HANDLE handle, const TRACK_DATA &startEntry, const TRACK_DATA &endEntry) :
_driveHandle(handle), _startEntry(startEntry), _endEntry(endEntry), _buffer(), _frame(0), _bufferPos(kSamplesPerFrame), _bufferFrame(0) {
- startTimer();
+ // We fill the buffer here already to prevent any out of sync issues due
+ // to the CD not yet having spun up.
+ startTimer(true);
}
Win32AudioCDStream::~Win32AudioCDStream() {