2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file bemidi.h Base of BeOS Midi support. */
|
|
|
|
|
2005-07-23 15:16:57 +00:00
|
|
|
#ifndef MUSIC_BEMIDI_H
|
|
|
|
#define MUSIC_BEMIDI_H
|
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
#include "music_driver.hpp"
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
class MusicDriver_BeMidi: public MusicDriver {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *Start(const char * const *param);
|
|
|
|
|
|
|
|
/* virtual */ void Stop();
|
|
|
|
|
|
|
|
/* virtual */ void PlaySong(const char *filename);
|
|
|
|
|
|
|
|
/* virtual */ void StopSong();
|
|
|
|
|
|
|
|
/* virtual */ bool IsSongPlaying();
|
|
|
|
|
|
|
|
/* virtual */ void SetVolume(byte vol);
|
|
|
|
};
|
|
|
|
|
|
|
|
class FMusicDriver_BeMidi: public MusicDriverFactory<FMusicDriver_BeMidi> {
|
|
|
|
public:
|
2007-07-07 20:31:23 +00:00
|
|
|
static const int priority = 10;
|
2007-07-05 12:23:54 +00:00
|
|
|
/* virtual */ const char *GetName() { return "bemidi"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "BeOS MIDI Driver"; }
|
|
|
|
/* virtual */ Driver *CreateInstance() { return new MusicDriver_BeMidi(); }
|
|
|
|
};
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-02-23 12:56:10 +00:00
|
|
|
#endif /* MUSIC_BEMIDI_H */
|