coastline 0.0.4
Loading...
Searching...
No Matches
backend.h File Reference
#include <stdint.h>
Include dependency graph for backend.h:

Go to the source code of this file.

Functions

int __stdcall GetDirectSoundVersion (void)
 Forward the audio-component version check to QueryDirectSoundProductVersion().
int __stdcall QueryDirectSoundProductVersion (void)
 Compare the system DirectSound product version or linked SDL version with the expected version.
int __stdcall ValidateEarStereoSolution (uint32_t enabled)
 Reject a requested unsupported stereo solution.
int __stdcall SetReservedEarInitializationOption (uint32_t option)
 Store a reserved initialisation value without validation or further processing.
int RejectUnsupportedInitializationFeature4000 (void)
int RejectUnsupportedInitializationFeature2000 (void)

Function Documentation

◆ GetDirectSoundVersion()

int __stdcall GetDirectSoundVersion ( void )

Forward the audio-component version check to QueryDirectSoundProductVersion().

Returns
Nonzero for an exact expected version match; zero otherwise.
Ghidra address:
EAR: 0x1001010b

◆ QueryDirectSoundProductVersion()

int __stdcall QueryDirectSoundProductVersion ( void )

Compare the system DirectSound product version or linked SDL version with the expected version.

Windows reads c:\windows\system\dsound.dll. Mismatches may set audio validation bits 8 for an older version or 2 for a newer version, comparing major and minor independently.

Returns
Nonzero for an exact version match; zero for a mismatch or failed Windows version query.
Ghidra address:
EAR: 0x1000fc00

◆ ValidateEarStereoSolution()

int __stdcall ValidateEarStereoSolution ( uint32_t enabled)

Reject a requested unsupported stereo solution.

Parameters
enabledZero to accept normal operation, or nonzero to request the unsupported solution.
Returns
One for zero; otherwise zero with EAR error 0x20.
Ghidra address:
EAR: 0x10010115

◆ SetReservedEarInitializationOption()

int __stdcall SetReservedEarInitializationOption ( uint32_t option)

Store a reserved initialisation value without validation or further processing.

Parameters
optionThe uninterpreted 32-bit option value.
Returns
One.
Ghidra address:
EAR: 0x10010132

◆ RejectUnsupportedInitializationFeature4000()

int RejectUnsupportedInitializationFeature4000 ( void )
Returns
Zero because initialisation feature 0x4000 is unsupported.
Ghidra address:
EAR: 0x100100fd

◆ RejectUnsupportedInitializationFeature2000()

int RejectUnsupportedInitializationFeature2000 ( void )
Returns
Zero because initialisation feature 0x2000 is unsupported.
Ghidra address:
EAR: 0x10010104