author | rubidium |
Sun, 03 Feb 2008 20:17:54 +0000 | |
branch | noai |
changeset 9724 | b39bc69bb2f2 |
parent 9641 | 855e32c08c9b |
child 10429 | 1b99254f9607 |
permissions | -rw-r--r-- |
9631 | 1 |
/* $Id$ */ |
2 |
||
3 |
#ifndef SOUND_SOUND_DRIVER_HPP |
|
4 |
#define SOUND_SOUND_DRIVER_HPP |
|
5 |
||
6 |
#include "../driver.h" |
|
7 |
||
8 |
class SoundDriver: public Driver { |
|
9 |
}; |
|
10 |
||
11 |
class SoundDriverFactoryBase: public DriverFactoryBase { |
|
12 |
}; |
|
13 |
||
14 |
template <class T> |
|
15 |
class SoundDriverFactory: public SoundDriverFactoryBase { |
|
16 |
public: |
|
9641
855e32c08c9b
(svn r10533) [NoAI] -Sync with trunk r10460:r10532.
truelight
parents:
9631
diff
changeset
|
17 |
SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND, ((T *)this)->priority); } |
9631 | 18 |
|
19 |
/** |
|
20 |
* Get the long, human readable, name for the Driver-class. |
|
21 |
*/ |
|
22 |
const char *GetName(); |
|
23 |
}; |
|
24 |
||
25 |
extern SoundDriver *_sound_driver; |
|
9724
b39bc69bb2f2
(svn r12051) [NoAI] -Sync: with trunk (r11795:12050).
rubidium
parents:
9641
diff
changeset
|
26 |
extern char _ini_sounddriver[32]; |
9631 | 27 |
|
28 |
#endif /* SOUND_SOUND_DRIVER_HPP */ |