author | richk |
Sat, 14 Jul 2007 19:42:58 +0000 | |
branch | NewGRF_ports |
changeset 6720 | 35756db7e577 |
parent 6450 | 1c2016673250 |
child 10724 | 68a692eacf22 |
permissions | -rw-r--r-- |
2186 | 1 |
/* $Id$ */ |
2 |
||
2171
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
3 |
#ifndef MUSIC_BEMIDI_H |
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
4 |
#define MUSIC_BEMIDI_H |
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
5 |
|
6720
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
6 |
#include "music_driver.hpp" |
2171
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
7 |
|
6720
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
8 |
class MusicDriver_BeMidi: public MusicDriver { |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
9 |
public: |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
10 |
/* virtual */ const char *Start(const char * const *param); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
11 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
12 |
/* virtual */ void Stop(); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
13 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
14 |
/* virtual */ void PlaySong(const char *filename); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
15 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
16 |
/* virtual */ void StopSong(); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
17 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
18 |
/* virtual */ bool IsSongPlaying(); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
19 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
20 |
/* virtual */ void SetVolume(byte vol); |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
21 |
}; |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
22 |
|
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
23 |
class FMusicDriver_BeMidi: public MusicDriverFactory<FMusicDriver_BeMidi> { |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
24 |
public: |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
25 |
static const int priority = 10; |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
26 |
/* virtual */ const char *GetName() { return "bemidi"; } |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
27 |
/* virtual */ const char *GetDescription() { return "BeOS MIDI Driver"; } |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
28 |
/* virtual */ Driver *CreateInstance() { return new MusicDriver_BeMidi(); } |
35756db7e577
(svn r10560) [NewGRF_ports] -Sync: with trunk r10027-10559
richk
parents:
6450
diff
changeset
|
29 |
}; |
2171
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
30 |
|
6450
1c2016673250
(svn r8860) -Cleanup: some style changes, proper #endif comments, variable initialisation, WINCE ifdef and a vsprintf to vsnprintf change.
Darkvater
parents:
5726
diff
changeset
|
31 |
#endif /* MUSIC_BEMIDI_H */ |