aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/sound.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-21 01:48:38 +0100
committerJohannes Schickel2016-03-21 01:48:38 +0100
commit5336882555e4834bb5b93fddcf4231d3def9d028 (patch)
tree757cc1dd3d5112f7ae479f86d2d11e0cf378e9bc /engines/cine/sound.cpp
parent00edd712e85c7811c1b6f1119ad2abcad6999ce9 (diff)
parentafe8ea139ccc4e563260494c236642153c540001 (diff)
downloadscummvm-rg350-5336882555e4834bb5b93fddcf4231d3def9d028.tar.gz
scummvm-rg350-5336882555e4834bb5b93fddcf4231d3def9d028.tar.bz2
scummvm-rg350-5336882555e4834bb5b93fddcf4231d3def9d028.zip
Merge pull request #704 from lordhoto/clone2727-audiocd
Implement Custom Audio CD Support for Win32, Linux, and Mac OS X.
Diffstat (limited to 'engines/cine/sound.cpp')
-rw-r--r--engines/cine/sound.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp
index 7cab067371..a8b4c085ff 100644
--- a/engines/cine/sound.cpp
+++ b/engines/cine/sound.cpp
@@ -939,6 +939,10 @@ PCSound::PCSound(Audio::Mixer *mixer, CineEngine *vm)
}
_player = new PCSoundFxPlayer(_soundDriver);
+
+ // Ensure the CD is open
+ if (_vm->getGameType() == GType_FW && (_vm->getFeatures() & GF_CD))
+ g_system->getAudioCDManager()->open();
}
PCSound::~PCSound() {