aboutsummaryrefslogtreecommitdiff
path: root/audio/mididrv.h
diff options
context:
space:
mode:
authorathrxx2011-06-05 18:26:25 +0200
committerathrxx2011-06-05 18:29:13 +0200
commit43075248aaef68ab9eef39c8988854f00eb694b0 (patch)
treee407a94d11c6075cf935f274a5864e549a26b0c9 /audio/mididrv.h
parent75297cb124c72a40d079a9bb0bb372993de8acbb (diff)
downloadscummvm-rg350-43075248aaef68ab9eef39c8988854f00eb694b0.tar.gz
scummvm-rg350-43075248aaef68ab9eef39c8988854f00eb694b0.tar.bz2
scummvm-rg350-43075248aaef68ab9eef39c8988854f00eb694b0.zip
AUDIO: fix device detection (missing rom files for MT-32 emu)
This is an attempt to fix the problem Max described in his devel mail. The presence of the rom files will now be checked in detectDevice(). In case of failure there will be fallback attempts. The user will get notified of the detection failure if he has expressly selected the device that failed. Please test with your platform / engine (with or without rom files).
Diffstat (limited to 'audio/mididrv.h')
-rw-r--r--audio/mididrv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/mididrv.h b/audio/mididrv.h
index 7369cab26b..9db23b8d14 100644
--- a/audio/mididrv.h
+++ b/audio/mididrv.h
@@ -156,6 +156,9 @@ public:
/** Find the music driver matching the given driver name/description. */
static DeviceHandle getDeviceHandle(const Common::String &identifier);
+ /** Check whether the device with the given handle is available. */
+ static bool checkDevice(DeviceHandle handle);
+
/** Get the music type matching the given device handle, or MT_AUTO if there is no match. */
static MusicType getMusicType(DeviceHandle handle);