equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
2 |
2 |
3 #ifndef SOUND_NULL_H |
3 #ifndef SOUND_NULL_H |
4 #define SOUND_NULL_H |
4 #define SOUND_NULL_H |
5 |
5 |
6 #include "../hal.h" |
6 #include "sound_driver.hpp" |
7 |
7 |
8 extern const HalSoundDriver _null_sound_driver; |
8 class SoundDriver_Null: public SoundDriver { |
|
9 public: |
|
10 /* virtual */ bool CanProbe() { return false; } |
|
11 |
|
12 /* virtual */ const char *Start(const char * const *param) { return NULL; } |
|
13 |
|
14 /* virtual */ void Stop() { } |
|
15 }; |
|
16 |
|
17 class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> { |
|
18 public: |
|
19 /* virtual */ const char *GetName() { return "null"; } |
|
20 /* virtual */ const char *GetDescription() { return "Null Sound Driver"; } |
|
21 /* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); } |
|
22 }; |
9 |
23 |
10 #endif /* SOUND_NULL_H */ |
24 #endif /* SOUND_NULL_H */ |