diff options
author | Ruediger Hanke | 2003-08-05 18:18:26 +0000 |
---|---|---|
committer | Ruediger Hanke | 2003-08-05 18:18:26 +0000 |
commit | c99f6980c70ea60f5aba8f45a0384059f24deabc (patch) | |
tree | acf7f6627184660b3eeb4169e55397423f5e5dac /backends/morphos/morphos_sound.cpp | |
parent | 7ff88ea392f430ccc78fdd0503136d8ed1aac036 (diff) | |
download | scummvm-rg350-c99f6980c70ea60f5aba8f45a0384059f24deabc.tar.gz scummvm-rg350-c99f6980c70ea60f5aba8f45a0384059f24deabc.tar.bz2 scummvm-rg350-c99f6980c70ea60f5aba8f45a0384059f24deabc.zip |
Hotfixes ...
svn-id: r9514
Diffstat (limited to 'backends/morphos/morphos_sound.cpp')
-rw-r--r-- | backends/morphos/morphos_sound.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/backends/morphos/morphos_sound.cpp b/backends/morphos/morphos_sound.cpp index 8ba967c0c6..0646f2bed8 100644 --- a/backends/morphos/morphos_sound.cpp +++ b/backends/morphos/morphos_sound.cpp @@ -55,9 +55,16 @@ static MsgPort *ScummMidiPort = NULL; Device *EtudeBase = NULL; +bool etude_available() +{ + bool avail = init_morphos_music(ScummMidiUnit, ETUDEF_DIRECT); + if (avail) + exit_morphos_music(); + return avail; +} + bool init_morphos_music(ULONG MidiUnit, ULONG DevFlags) { - MidiUnit = ScummMidiUnit; // Ugly fix, but ... ScummMidiPort = CreateMsgPort(); if (ScummMidiPort) { @@ -83,10 +90,7 @@ bool init_morphos_music(ULONG MidiUnit, ULONG DevFlags) } if (!ScummMidiRequest) - { - warning("Could not open Etude - music will not play"); return false; - } return true; } |