diff -r ded23f6bc34c -r a5fccd76176a src/sound/win32_s.cpp --- a/src/sound/win32_s.cpp Thu Jul 05 06:35:09 2007 +0000 +++ b/src/sound/win32_s.cpp Thu Jul 05 12:23:54 2007 +0000 @@ -10,6 +10,8 @@ #include #include +static FSoundDriver_Win32 iFSoundDriver_Win32; + static HWAVEOUT _waveout; static WAVEHDR _wave_hdr[2]; static int _bufsize; @@ -48,7 +50,7 @@ } } -static const char *Win32SoundStart(const char* const* parm) +const char *SoundDriver_Win32::Start(const char* const* parm) { WAVEFORMATEX wfex; wfex.wFormatTag = WAVE_FORMAT_PCM; @@ -69,7 +71,7 @@ return NULL; } -static void Win32SoundStop() +void SoundDriver_Win32::Stop() { HWAVEOUT waveout = _waveout; @@ -79,8 +81,3 @@ waveOutUnprepareHeader(waveout, &_wave_hdr[1], sizeof(WAVEHDR)); waveOutClose(waveout); } - -const HalSoundDriver _win32_sound_driver = { - Win32SoundStart, - Win32SoundStop, -};