author | peter1138 |
Thu, 31 Jan 2008 23:04:45 +0000 | |
changeset 8958 | b2c67df4bcc0 |
parent 7689 | 011afceb33b5 |
child 10429 | 1b99254f9607 |
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 SOUND_WIN32_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 SOUND_WIN32_H |
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
5 |
|
7666
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
6 |
#include "sound_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 |
|
7666
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
8 |
class SoundDriver_Win32: public SoundDriver { |
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
9 |
public: |
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
10 |
/* virtual */ const char *Start(const char * const *param); |
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
11 |
|
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
12 |
/* virtual */ void Stop(); |
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
13 |
}; |
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
14 |
|
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
15 |
class FSoundDriver_Win32: public SoundDriverFactory<FSoundDriver_Win32> { |
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
16 |
public: |
7689
011afceb33b5
(svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first
peter1138
parents:
7680
diff
changeset
|
17 |
static const int priority = 10; |
7666
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
18 |
/* virtual */ const char *GetName() { return "win32"; } |
7680
8b9b74983b07
(svn r10458) -Fix (r10444): restore original descriptions for win32 drivers
peter1138
parents:
7666
diff
changeset
|
19 |
/* virtual */ const char *GetDescription() { return "Win32 WaveOut Driver"; } |
7666
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
20 |
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Win32(); } |
a5fccd76176a
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
peter1138
parents:
6450
diff
changeset
|
21 |
}; |
2171
008122046f7f
(svn r2685) -Codechange: Split the music/sound/video drivers into separate files and move them into subfolders.
tron
parents:
diff
changeset
|
22 |
|
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
|
23 |
#endif /* SOUND_WIN32_H */ |