aboutsummaryrefslogtreecommitdiff
path: root/backends/audiocd/linux
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/linux
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/linux')
-rw-r--r--backends/audiocd/linux/linux-audiocd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/audiocd/linux/linux-audiocd.cpp b/backends/audiocd/linux/linux-audiocd.cpp
index f557e00d6d..a86860106a 100644
--- a/backends/audiocd/linux/linux-audiocd.cpp
+++ b/backends/audiocd/linux/linux-audiocd.cpp
@@ -117,7 +117,9 @@ private:
LinuxAudioCDStream::LinuxAudioCDStream(int fd, const cdrom_tocentry &startEntry, const cdrom_tocentry &endEntry) :
_fd(fd), _startEntry(startEntry), _endEntry(endEntry) {
- 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);
}
LinuxAudioCDStream::~LinuxAudioCDStream() {