Inheritance diagram for ds_wave_out:
Public Methods | |
ds_wave_out () | |
virtual | ~ds_wave_out () |
bool | init (int frequency, bool stereo) |
sound output initialisation | |
bool | write (unsigned short *ptr, int size) |
sound data output | |
bool | wait () |
bool | stop () |
stop sound output | |
Private Attributes | |
IDirectSound8 * | _ds |
IDirectSoundBuffer8 * | _dsb |
int | _writepos |
int | _oldwritepos |
int | _size |
bool | _started |
This class implements a DirectSound8 compatible sound renderer.
The synchronisation may fail on unpredictable occasion (the time frame when sync occurs is too small).
Definition at line 45 of file win32.cpp.
|
|
|
|
|
sound output initialisation This is called by the mixer when initialisation has to be performed.
Implements sound_renderer. Definition at line 63 of file win32.cpp. References _ds, _dsb, _oldwritepos, _size, _writepos, and GUID_NULL. |
|
stop sound output This is called by the mixer when sound output should be stopped.
Implements sound_renderer. |
|
Definition at line 131 of file win32.cpp. References _ds, _dsb, _oldwritepos, _started, and _writepos. |
|
sound data output This is called by the mixer to put data to the output.
Implements sound_renderer. Definition at line 94 of file win32.cpp. References _ds, _dsb, _oldwritepos, _size, _started, and _writepos. |
|
Definition at line 47 of file win32.cpp. Referenced by ds_wave_out(), init(), stop(), wait(), write(), and ~ds_wave_out(). |
|
Definition at line 48 of file win32.cpp. Referenced by ds_wave_out(), init(), stop(), wait(), write(), and ~ds_wave_out(). |
|
|
|
|
|
Definition at line 54 of file win32.cpp. Referenced by ds_wave_out(), stop(), wait(), and write(). |
|
|