|
coastline 0.0.4
|
Windows DirectSound output with a continuously playing 22050 Hz stereo 16-bit primary buffer. More...
#include <audiooutput.h>
Public Member Functions | |
| EarDirectSoundOutput () | |
| Initialise COM, a DirectSound device, and its primary buffer using the assigned game window. | |
| ~EarDirectSoundOutput () | |
| Stop and release available primary-buffer and device resources, then uninitialise COM. | |
| IDirectSound * | GetDirectSoundInterface () |
Windows DirectSound output with a continuously playing 22050 Hz stereo 16-bit primary buffer.
| EarDirectSoundOutput::EarDirectSoundOutput | ( | ) |
Initialise COM, a DirectSound device, and its primary buffer using the assigned game window.
Failed initialisation records an EAR error and clears the device reference. Failure cleanup uninitialises COM even before successful COM initialisation; any primary buffer remains allocated until destruction.
| EarDirectSoundOutput::~EarDirectSoundOutput | ( | ) |
Stop and release available primary-buffer and device resources, then uninitialise COM.
| IDirectSound * EarDirectSoundOutput::GetDirectSoundInterface | ( | ) |