coastline 0.0.4
Loading...
Searching...
No Matches
EarDirectSoundOutput Class Reference

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 ()

Detailed Description

Windows DirectSound output with a continuously playing 22050 Hz stereo 16-bit primary buffer.

Constructor & Destructor Documentation

◆ EarDirectSoundOutput()

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.

Ghidra address:
EAR: 0x1001024e

◆ ~EarDirectSoundOutput()

EarDirectSoundOutput::~EarDirectSoundOutput ( )

Stop and release available primary-buffer and device resources, then uninitialise COM.

Ghidra address:
EAR: 0x10010593

Member Function Documentation

◆ GetDirectSoundInterface()

IDirectSound * EarDirectSoundOutput::GetDirectSoundInterface ( )
Returns
The borrowed DirectSound interface, valid until destruction, or null after failure.
Ghidra address:
EAR: 0x10010630

The documentation for this class was generated from the following file: