coastline 0.0.4
Loading...
Searching...
No Matches
audiooutput.h File Reference
#include <cstdint>
#include <dsound.h>
#include <windows.h>
Include dependency graph for audiooutput.h:

Go to the source code of this file.

Classes

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

Functions

void ShutdownEarAudioOutput (void)
 Allocated shared Windows output instance, or null before creation or after shutdown.
int InitializeEarAudioOutput (void)
 Create shared Windows output or open the SDL mixer; existing Windows output must be shut down.

Function Documentation

◆ ShutdownEarAudioOutput()

void ShutdownEarAudioOutput ( void )

Allocated shared Windows output instance, or null before creation or after shutdown.

ShutdownEarAudioOutput() deletes the instance and invalidates borrowed interfaces.

Ghidra address:
EAR: 0x1003b99c Release and clear the shared Windows output instance or close the SDL mixer.
Ghidra address:
EAR: 0x10010146

◆ InitializeEarAudioOutput()

int InitializeEarAudioOutput ( void )

Create shared Windows output or open the SDL mixer; existing Windows output must be shut down.

Returns
One when an output interface is available; zero with EAR error 3 on initialisation failure. Native Windows allocation failure is unchecked.
Ghidra address:
EAR: 0x1001018d