Moved midiplugin.h to sound/ since it will be used for more than just the native MIDI drivers.
svn-id: r32097
This commit is contained in:
parent
6a9429613b
commit
d942fd42bb
16 changed files with 35 additions and 35 deletions
|
@ -26,9 +26,9 @@
|
|||
|
||||
#if defined(UNIX) && defined(USE_ALSA)
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/config-manager.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
@ -241,7 +241,7 @@ void MidiDriver_ALSA::send_event(int do_flush) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class AlsaMidiPlugin : public MidiPlugin {
|
||||
class AlsaMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "ALSA";
|
||||
|
|
|
@ -26,9 +26,9 @@
|
|||
|
||||
#if defined(__amigaos4__)
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/endian.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <proto/camd.h>
|
||||
|
@ -166,7 +166,7 @@ void MidiDriver_CAMD::closeAll() {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class CamdMidiPlugin : public MidiPlugin {
|
||||
class CamdMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "CAMD";
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
|
||||
#ifdef MACOSX
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/config-manager.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <AudioToolbox/AUGraph.h>
|
||||
|
@ -196,7 +196,7 @@ void MidiDriver_CORE::sysEx(const byte *msg, uint16 length) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class CoreAudioMidiPlugin : public MidiPlugin {
|
||||
class CoreAudioMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "CoreAudio";
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
|
||||
#ifdef MACOSX
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/config-manager.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <CoreMIDI/CoreMIDI.h>
|
||||
|
@ -179,7 +179,7 @@ void MidiDriver_CoreMIDI::sysEx(const byte *msg, uint16 length) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class CoreMIDIMidiPlugin : public MidiPlugin {
|
||||
class CoreMIDIMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "CoreMIDI";
|
||||
|
|
|
@ -29,9 +29,9 @@
|
|||
|
||||
#if defined(IRIX)
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/scummsys.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <dmedia/midi.h>
|
||||
|
@ -178,7 +178,7 @@ void MidiDriver_DMEDIA::sysEx (const byte *msg, uint16 length) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class DMediaMidiPlugin : public MidiPlugin {
|
||||
class DMediaMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "DMedia";
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
|
||||
#if defined(MACOSX) || defined(macintosh)
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/endian.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#if defined(MACOSX)
|
||||
|
@ -253,7 +253,7 @@ void MidiDriver_QT::dispose()
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class QuickTimeMidiPlugin : public MidiPlugin {
|
||||
class QuickTimeMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "QuickTime";
|
||||
|
|
|
@ -30,8 +30,8 @@
|
|||
|
||||
#if defined(UNIX) && !defined(__BEOS__) && !defined(__MAEMO__)
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
@ -173,7 +173,7 @@ void MidiDriver_SEQ::sysEx (const byte *msg, uint16 length) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class SeqMidiPlugin : public MidiPlugin {
|
||||
class SeqMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "SEQ";
|
||||
|
|
|
@ -36,8 +36,8 @@
|
|||
|
||||
#if defined (UNIX)
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
@ -514,7 +514,7 @@ void MidiDriver_TIMIDITY::sysEx(const byte *msg, uint16 length) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class TimidityMidiPlugin : public MidiPlugin {
|
||||
class TimidityMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "TiMidity";
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
// winnt.h defines ARRAYSIZE, but we want our own one...
|
||||
#undef ARRAYSIZE
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include <mmsystem.h>
|
||||
|
@ -147,7 +147,7 @@ void MidiDriver_WIN::check_error(MMRESULT result) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class WindowsMidiPlugin : public MidiPlugin {
|
||||
class WindowsMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "Windows MIDI";
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#include "Pa1Lib.h"
|
||||
|
@ -106,7 +106,7 @@ void MidiDriver_YamahaPa1::send(uint32 b) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class YamahaPa1MidiPlugin : public MidiPlugin {
|
||||
class YamahaPa1MidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "Yamaha Pa1";
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
* $Id$
|
||||
*/
|
||||
|
||||
#include "backends/midi/midiplugin.h"
|
||||
#include "common/util.h"
|
||||
#include "sound/midiplugin.h"
|
||||
#include "sound/mpu401.h"
|
||||
|
||||
#ifndef DISABLE_TAPWAVE
|
||||
|
@ -124,7 +124,7 @@ void MidiDriver_Zodiac::sysEx(const byte *msg, uint16 length) {
|
|||
|
||||
// Plugin interface
|
||||
|
||||
class ZodiacMidiPlugin : public MidiPlugin {
|
||||
class ZodiacMidiPlugin : public MidiPluginObject {
|
||||
public:
|
||||
virtual const char *getName() const {
|
||||
return "Tapwave Zodiac";
|
||||
|
|
|
@ -679,7 +679,7 @@
|
|||
<Filter
|
||||
Name="midi">
|
||||
<File
|
||||
RelativePath="..\..\backends\midi\midiplugin.h">
|
||||
RelativePath="..\..\sound\midiplugin.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\backends\midi\windows.cpp">
|
||||
|
|
|
@ -693,7 +693,7 @@
|
|||
<Filter
|
||||
Name="midi">
|
||||
<File
|
||||
RelativePath="..\..\backends\midi\midiplugin.h">
|
||||
RelativePath="..\..\sound\midiplugin.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\backends\midi\windows.cpp">
|
||||
|
|
|
@ -939,7 +939,7 @@
|
|||
Name="midi"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\backends\midi\midiplugin.h"
|
||||
RelativePath="..\..\sound\midiplugin.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
|
|
|
@ -944,7 +944,7 @@
|
|||
Name="midi"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\backends\midi\midiplugin.h"
|
||||
RelativePath="..\..\sound\midiplugin.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
|
|
|
@ -29,12 +29,12 @@
|
|||
#include "sound/mididrv.h"
|
||||
|
||||
/**
|
||||
* A MidiPlugin is essentially a factory for MidiDriver instances with the
|
||||
* added ability of listing the available devices and their capabilities.
|
||||
* A MidiPluginObject is essentially a factory for MidiDriver instances with
|
||||
* the added ability of listing the available devices and their capabilities.
|
||||
*/
|
||||
class MidiPlugin : public PluginObject {
|
||||
class MidiPluginObject : public PluginObject {
|
||||
public:
|
||||
virtual ~MidiPlugin() {}
|
||||
virtual ~MidiPluginObject() {}
|
||||
|
||||
/**
|
||||
* Returns a list of the available devices. The empty string means the
|
||||
|
@ -47,13 +47,13 @@ public:
|
|||
}
|
||||
|
||||
/**
|
||||
* Tries to instantiate an engine instance based on the settings of
|
||||
* the currently active ConfMan target. That is, the MidiPlugin should
|
||||
* query the ConfMan singleton for the device name, port, etc.
|
||||
* Tries to instantiate a MIDI Driver instance based on the settings of
|
||||
* the currently active ConfMan target. That is, the MidiPluginObject
|
||||
* should query the ConfMan singleton for the device name, port, etc.
|
||||
*
|
||||
* @param mixer Pointer to the global Mixer object
|
||||
* @param mididriver Pointer to a pointer which the MidiPlugin sets to
|
||||
* the newly create MidiDriver, or 0 in case of an error
|
||||
* @param mididriver Pointer to a pointer which the MidiPluginObject sets
|
||||
* to the newly create MidiDriver, or 0 in case of an error
|
||||
* @return a PluginError describing the error which occurred, or kNoError
|
||||
*/
|
||||
virtual PluginError createInstance(Audio::Mixer *mixer, MidiDriver **mididriver) const = 0;
|
Loading…
Add table
Add a link
Reference in a new issue