diff options
author | Alejandro Marzini | 2010-06-15 04:13:12 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-06-15 04:13:12 +0000 |
commit | e1ef3cd9fc059ebe8c606d330173bc3f71f8dce7 (patch) | |
tree | 46fa8fa2fb556941a0edecee0a1e1169a29232b5 /engines/made/scriptfuncs.cpp | |
parent | 6a52a168eeb54938c757d3be560f7ba8b30aa7c0 (diff) | |
download | scummvm-rg350-e1ef3cd9fc059ebe8c606d330173bc3f71f8dce7.tar.gz scummvm-rg350-e1ef3cd9fc059ebe8c606d330173bc3f71f8dce7.tar.bz2 scummvm-rg350-e1ef3cd9fc059ebe8c606d330173bc3f71f8dce7.zip |
Renamed getAudioCD to getAudioCDManager.
svn-id: r49678
Diffstat (limited to 'engines/made/scriptfuncs.cpp')
-rw-r--r-- | engines/made/scriptfuncs.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp index 8714c45173..b1a8b0ff84 100644 --- a/engines/made/scriptfuncs.cpp +++ b/engines/made/scriptfuncs.cpp @@ -594,9 +594,9 @@ int16 ScriptFunctions::sfPlayVoice(int16 argc, int16 *argv) { } int16 ScriptFunctions::sfPlayCd(int16 argc, int16 *argv) { - g_system->getAudioCD()->play(argv[0] - 1, 1, 0, 0); + g_system->getAudioCDManager()->play(argv[0] - 1, 1, 0, 0); _vm->_cdTimeStart = _vm->_system->getMillis(); - if (g_system->getAudioCD()->isPlaying()) { + if (g_system->getAudioCDManager()->isPlaying()) { return 1; } else { return 0; @@ -604,8 +604,8 @@ int16 ScriptFunctions::sfPlayCd(int16 argc, int16 *argv) { } int16 ScriptFunctions::sfStopCd(int16 argc, int16 *argv) { - if (g_system->getAudioCD()->isPlaying()) { - g_system->getAudioCD()->stop(); + if (g_system->getAudioCDManager()->isPlaying()) { + g_system->getAudioCDManager()->stop(); return 1; } else { return 0; @@ -613,11 +613,11 @@ int16 ScriptFunctions::sfStopCd(int16 argc, int16 *argv) { } int16 ScriptFunctions::sfGetCdStatus(int16 argc, int16 *argv) { - return g_system->getAudioCD()->isPlaying() ? 1 : 0; + return g_system->getAudioCDManager()->isPlaying() ? 1 : 0; } int16 ScriptFunctions::sfGetCdTime(int16 argc, int16 *argv) { - if (g_system->getAudioCD()->isPlaying()) { + if (g_system->getAudioCDManager()->isPlaying()) { uint32 deltaTime = _vm->_system->getMillis() - _vm->_cdTimeStart; // This basically converts the time from milliseconds to MSF format to MADE's format return (deltaTime / 1000 * 30) + (deltaTime % 1000 / 75 * 30 / 75); |