aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth/fluidsynth.cpp
diff options
context:
space:
mode:
authorJordi Vilalta Prat2008-06-13 16:04:43 +0000
committerJordi Vilalta Prat2008-06-13 16:04:43 +0000
commit8eac3569462c71fdcb7d4d23684a8d5ee34dc8b8 (patch)
tree5d8f20ef0605e11a65c6bcede9dc91f57fc2cb1b /sound/softsynth/fluidsynth.cpp
parent177993b14530e8c4af6d46be62a11b02719accb9 (diff)
downloadscummvm-rg350-8eac3569462c71fdcb7d4d23684a8d5ee34dc8b8.tar.gz
scummvm-rg350-8eac3569462c71fdcb7d4d23684a8d5ee34dc8b8.tar.bz2
scummvm-rg350-8eac3569462c71fdcb7d4d23684a8d5ee34dc8b8.zip
Added initial interface to list music devices and their types
svn-id: r32695
Diffstat (limited to 'sound/softsynth/fluidsynth.cpp')
-rw-r--r--sound/softsynth/fluidsynth.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/sound/softsynth/fluidsynth.cpp b/sound/softsynth/fluidsynth.cpp
index f2dcb2de7a..eff9f4123c 100644
--- a/sound/softsynth/fluidsynth.cpp
+++ b/sound/softsynth/fluidsynth.cpp
@@ -221,21 +221,24 @@ void MidiDriver_FluidSynth::generateSamples(int16 *data, int len) {
class FluidSynthMusicPlugin : public MusicPluginObject {
public:
- virtual const char *getName() const {
+ const char *getName() const {
return "FluidSynth";
}
- virtual const char *getId() const {
+ const char *getId() const {
return "fluidsynth";
}
- virtual int getCapabilities() const {
- return MDT_MIDI;
- }
-
- virtual PluginError createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const;
+ MusicDevices getDevices() const;
+ PluginError createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const;
};
+MusicDevices FluidSynthMusicPlugin::getDevices() const {
+ MusicDevices devices;
+ devices.push_back(MusicDevice(this, "", MT_GM));
+ return devices;
+}
+
PluginError FluidSynthMusicPlugin::createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const {
*mididriver = new MidiDriver_FluidSynth(mixer);