coastline 0.0.4
Loading...
Searching...
No Matches
earsound.h File Reference

The routines of the EAR library, earias.dll or earpds.dll, found when the library loads. More...

#include <cstddef>
#include <windows.h>
#include "ear/eventparameters.h"
Include dependency graph for earsound.h:

Go to the source code of this file.

Classes

struct  EarPlayParams
 Parameters shared with the EAR event mixer. More...

Typedefs

typedef int(WINAPI * EarProc0) (void)
 A routine of the EAR library with no parameters.
typedef int(WINAPI * EarProc1) (int nValue)
 A routine of the EAR library with one parameter.
typedef int(WINAPI * EarProc2) (int nValue, int nValue2)
 A routine of the EAR library with two parameters.
typedef int(WINAPI * EarProc4) (int nValue, int nValue2, int nValue3, int nValue4)
 A routine of the EAR library with four parameters.
typedef int(WINAPI * EarAssignHwndProc) (HWND hWnd)
 The routine of the EAR library that takes the window it posts its messages to.
typedef WPARAM(WINAPI * EarMixEventProc) (EarPlayParams *pParams)
 Mix an EAR event and return its event identifier.

Functions

bool LoadEarSoundDll (int bUsePds)
 Load an EAR library and find its routines.

Variables

EarPlayParams g_EarPlayParams
 The parameters of the current EAR playback request.
HMODULE g_hEarSoundDll
 The EAR library.
int g_bEarSoundDllLoadedByUs
 Whether LoadEarSoundDll() loaded the library, rather than finding it already loaded.
int g_bEarSoundDllUsingPds
 Whether earpds.dll was loaded in place of earias.dll.
int g_bEarSoundPdsRequested
 Whether earpds.dll was requested.
int g_dwEarSoundDllMode
 The library InitializeEarSound() loads.
int g_dwEarSoundInitRefCount
 The number of calls to InitializeEarSound().
EarProc1 g_pfnEarAaaValidate
 _EAR_DLL_AAA_Validate of the EAR library.
EarAssignHwndProc g_pfnEarAssignHwnd
 _EAR_DLL_AssignHwnd of the EAR library.
EarProc2 g_pfnEarChangeChannelControl
 _EAR_DLL_ChangeChannelControl of the EAR library.
EarProc2 g_pfnEarClearChannel
 _EAR_DLL_ClearChannel of the EAR library.
EarProc0 g_pfnEarEarInactive
 _EAR_DLL_EarInactive of the EAR library.
EarProc2 g_pfnEarGetEventStatus
 _EAR_DLL_GetEventStatus of the EAR library.
EarProc0 g_pfnEarGetLastError
 _EAR_DLL_GetLastError of the EAR library.
EarProc0 g_pfnEarGetVersion
 _EAR_DLL_GetVersion of the EAR library.
EarProc1 g_pfnEarInitializeEar
 _EAR_DLL_InitializeEar of the EAR library.
EarMixEventProc g_pfnEarMixEvent
 _EAR_DLL_MixEvent of the EAR library.
EarProc1 g_pfnEarMoveEvent
 _EAR_DLL_MoveEvent of the EAR library.
EarProc2 g_pfnEarRegisterBank
 _EAR_DLL_RegisterBank of the EAR library.
EarProc4 g_pfnEarRegisterChannel
 _EAR_DLL_RegisterChannel of the EAR library.
EarProc1 g_pfnEarRegisterEnvironment
 _EAR_DLL_RegisterEnvironment of the EAR library.
EarProc1 g_pfnEarRegisterMatrix
 _EAR_DLL_RegisterMatrix of the EAR library.
EarProc2 g_pfnEarRegisterPreset
 _EAR_DLL_RegisterPreset of the EAR library.
EarProc0 g_pfnEarResetEar
 _EAR_DLL_ResetEar of the EAR library.
EarProc2 g_pfnEarSetAttenuationLevel
 _EAR_DLL_SetAttenuationLevel of the EAR library.
EarProc2 g_pfnEarSetUserDistanceUnit
 _EAR_DLL_SetUserDistanceUnit of the EAR library.
EarProc0 g_pfnEarShowLastError
 _EAR_DLL_ShowLastError of the EAR library.
EarProc1 g_pfnEarShutDownBank
 _EAR_DLL_ShutDownBank of the EAR library.
EarProc1 g_pfnEarShutDownChannel
 _EAR_DLL_ShutDownChannel of the EAR library.
EarProc0 g_pfnEarShutDownEar
 _EAR_DLL_ShutDownEar of the EAR library.
EarProc1 g_pfnEarShutDownEnvironment
 _EAR_DLL_ShutDownEnvironment of the EAR library.
EarProc2 g_pfnEarShutDownEvent
 _EAR_DLL_ShutDownEvent of the EAR library.
EarProc1 g_pfnEarShutDownMatrix
 _EAR_DLL_ShutDownMatrix of the EAR library.
EarProc1 g_pfnEarShutDownPreset
 _EAR_DLL_ShutDownPreset of the EAR library.
EarProc1 g_pfnEarStartEvent
 _EAR_DLL_StartEvent of the EAR library.
EarProc0 g_pfnEarStartTimer
 _EAR_DLL_StartTimer of the EAR library.
EarProc0 g_pfnEarShutDownTimer
 _EAR_DLL_ShutDownTimer of the EAR library.
EarProc0 g_pfnEarUpdateEar
 _EAR_DLL_UpdateEar of the EAR library.

Detailed Description

The routines of the EAR library, earias.dll or earpds.dll, found when the library loads.

Parameters with unknown types use integer arguments.

Typedef Documentation

◆ EarProc0

typedef int(WINAPI * EarProc0) (void)

A routine of the EAR library with no parameters.

◆ EarProc1

typedef int(WINAPI * EarProc1) (int nValue)

A routine of the EAR library with one parameter.

◆ EarProc2

typedef int(WINAPI * EarProc2) (int nValue, int nValue2)

A routine of the EAR library with two parameters.

◆ EarProc4

typedef int(WINAPI * EarProc4) (int nValue, int nValue2, int nValue3, int nValue4)

A routine of the EAR library with four parameters.

◆ EarAssignHwndProc

typedef int(WINAPI * EarAssignHwndProc) (HWND hWnd)

The routine of the EAR library that takes the window it posts its messages to.

◆ EarMixEventProc

typedef WPARAM(WINAPI * EarMixEventProc) (EarPlayParams *pParams)

Mix an EAR event and return its event identifier.

Function Documentation

◆ LoadEarSoundDll()

bool LoadEarSoundDll ( int bUsePds)

Load an EAR library and find its routines.

Parameters
bUsePdsWhether to load earpds.dll rather than earias.dll.
Returns
Whether the library loaded and every routine was found.
Ghidra address:
BRD3D: 0x1002a8a0
Ghidra address:
BRGlide: 0x10017910

Variable Documentation

◆ g_EarPlayParams

EarPlayParams g_EarPlayParams
extern

The parameters of the current EAR playback request.

Ghidra address:
BRD3D: 0x10220c50
Ghidra address:
BRGlide: 0x1021c780

◆ g_hEarSoundDll

HMODULE g_hEarSoundDll
extern

The EAR library.

Ghidra address:
BRD3D: 0x10575464
Ghidra address:
BRGlide: 0x104b160c

◆ g_bEarSoundDllLoadedByUs

int g_bEarSoundDllLoadedByUs
extern

Whether LoadEarSoundDll() loaded the library, rather than finding it already loaded.

Ghidra address:
BRD3D: 0x105754d4
Ghidra address:
BRGlide: 0x104b167c

◆ g_bEarSoundDllUsingPds

int g_bEarSoundDllUsingPds
extern

Whether earpds.dll was loaded in place of earias.dll.

Ghidra address:
BRD3D: 0x105754d8
Ghidra address:
BRGlide: 0x104b1680

◆ g_bEarSoundPdsRequested

int g_bEarSoundPdsRequested
extern

Whether earpds.dll was requested.

Ghidra address:
BRD3D: 0x105754dc
Ghidra address:
BRGlide: 0x104b1684

◆ g_dwEarSoundDllMode

int g_dwEarSoundDllMode
extern

The library InitializeEarSound() loads.

1 requests earpds.dll, and 0 requests earias.dll with earpds.dll as the fallback.

Ghidra address:
BRD3D: 0x100a81a8
Ghidra address:
BRGlide: 0x100a74fc

◆ g_dwEarSoundInitRefCount

int g_dwEarSoundInitRefCount
extern

The number of calls to InitializeEarSound().

Ghidra address:
BRD3D: 0x105754e0
Ghidra address:
BRGlide: 0x104b1688

◆ g_pfnEarAaaValidate

EarProc1 g_pfnEarAaaValidate
extern

_EAR_DLL_AAA_Validate of the EAR library.

Ghidra address:
BRD3D: 0x105754b0
Ghidra address:
BRGlide: 0x104b1658

◆ g_pfnEarAssignHwnd

EarAssignHwndProc g_pfnEarAssignHwnd
extern

_EAR_DLL_AssignHwnd of the EAR library.

Ghidra address:
BRD3D: 0x1057548c
Ghidra address:
BRGlide: 0x104b1634

◆ g_pfnEarChangeChannelControl

EarProc2 g_pfnEarChangeChannelControl
extern

_EAR_DLL_ChangeChannelControl of the EAR library.

Ghidra address:
BRD3D: 0x10575484
Ghidra address:
BRGlide: 0x104b162c

◆ g_pfnEarClearChannel

EarProc2 g_pfnEarClearChannel
extern

_EAR_DLL_ClearChannel of the EAR library.

Ghidra address:
BRD3D: 0x10575480
Ghidra address:
BRGlide: 0x104b1628

◆ g_pfnEarEarInactive

EarProc0 g_pfnEarEarInactive
extern

_EAR_DLL_EarInactive of the EAR library.

Ghidra address:
BRD3D: 0x10575460
Ghidra address:
BRGlide: 0x104b1608

◆ g_pfnEarGetEventStatus

EarProc2 g_pfnEarGetEventStatus
extern

_EAR_DLL_GetEventStatus of the EAR library.

Ghidra address:
BRD3D: 0x105754b4
Ghidra address:
BRGlide: 0x104b165c

◆ g_pfnEarGetLastError

EarProc0 g_pfnEarGetLastError
extern

_EAR_DLL_GetLastError of the EAR library.

Ghidra address:
BRD3D: 0x105754c4
Ghidra address:
BRGlide: 0x104b166c

◆ g_pfnEarGetVersion

EarProc0 g_pfnEarGetVersion
extern

_EAR_DLL_GetVersion of the EAR library.

Ghidra address:
BRD3D: 0x10575450
Ghidra address:
BRGlide: 0x104b15f8

◆ g_pfnEarInitializeEar

EarProc1 g_pfnEarInitializeEar
extern

_EAR_DLL_InitializeEar of the EAR library.

Ghidra address:
BRD3D: 0x105754c0
Ghidra address:
BRGlide: 0x104b1668

◆ g_pfnEarMixEvent

EarMixEventProc g_pfnEarMixEvent
extern

_EAR_DLL_MixEvent of the EAR library.

Ghidra address:
BRD3D: 0x1057546c
Ghidra address:
BRGlide: 0x104b1614

◆ g_pfnEarMoveEvent

EarProc1 g_pfnEarMoveEvent
extern

_EAR_DLL_MoveEvent of the EAR library.

Ghidra address:
BRD3D: 0x10575488
Ghidra address:
BRGlide: 0x104b1630

◆ g_pfnEarRegisterBank

EarProc2 g_pfnEarRegisterBank
extern

_EAR_DLL_RegisterBank of the EAR library.

Ghidra address:
BRD3D: 0x105754cc
Ghidra address:
BRGlide: 0x104b1674

◆ g_pfnEarRegisterChannel

EarProc4 g_pfnEarRegisterChannel
extern

_EAR_DLL_RegisterChannel of the EAR library.

Ghidra address:
BRD3D: 0x105754a0
Ghidra address:
BRGlide: 0x104b1648

◆ g_pfnEarRegisterEnvironment

EarProc1 g_pfnEarRegisterEnvironment
extern

_EAR_DLL_RegisterEnvironment of the EAR library.

Ghidra address:
BRD3D: 0x105754ac
Ghidra address:
BRGlide: 0x104b1654

◆ g_pfnEarRegisterMatrix

EarProc1 g_pfnEarRegisterMatrix
extern

_EAR_DLL_RegisterMatrix of the EAR library.

Ghidra address:
BRD3D: 0x105754d0
Ghidra address:
BRGlide: 0x104b1678

◆ g_pfnEarRegisterPreset

EarProc2 g_pfnEarRegisterPreset
extern

_EAR_DLL_RegisterPreset of the EAR library.

Ghidra address:
BRD3D: 0x105754c8
Ghidra address:
BRGlide: 0x104b1670

◆ g_pfnEarResetEar

EarProc0 g_pfnEarResetEar
extern

_EAR_DLL_ResetEar of the EAR library.

Ghidra address:
BRD3D: 0x10575494
Ghidra address:
BRGlide: 0x104b163c

◆ g_pfnEarSetAttenuationLevel

EarProc2 g_pfnEarSetAttenuationLevel
extern

_EAR_DLL_SetAttenuationLevel of the EAR library.

Ghidra address:
BRD3D: 0x10575454
Ghidra address:
BRGlide: 0x104b15fc

◆ g_pfnEarSetUserDistanceUnit

EarProc2 g_pfnEarSetUserDistanceUnit
extern

_EAR_DLL_SetUserDistanceUnit of the EAR library.

Ghidra address:
BRD3D: 0x105754b8
Ghidra address:
BRGlide: 0x104b1660

◆ g_pfnEarShowLastError

EarProc0 g_pfnEarShowLastError
extern

_EAR_DLL_ShowLastError of the EAR library.

Ghidra address:
BRD3D: 0x105754a8
Ghidra address:
BRGlide: 0x104b1650

◆ g_pfnEarShutDownBank

EarProc1 g_pfnEarShutDownBank
extern

_EAR_DLL_ShutDownBank of the EAR library.

Ghidra address:
BRD3D: 0x10575458
Ghidra address:
BRGlide: 0x104b1600

◆ g_pfnEarShutDownChannel

EarProc1 g_pfnEarShutDownChannel
extern

_EAR_DLL_ShutDownChannel of the EAR library.

Ghidra address:
BRD3D: 0x10575470
Ghidra address:
BRGlide: 0x104b1618

◆ g_pfnEarShutDownEar

EarProc0 g_pfnEarShutDownEar
extern

_EAR_DLL_ShutDownEar of the EAR library.

Ghidra address:
BRD3D: 0x10575474
Ghidra address:
BRGlide: 0x104b161c

◆ g_pfnEarShutDownEnvironment

EarProc1 g_pfnEarShutDownEnvironment
extern

_EAR_DLL_ShutDownEnvironment of the EAR library.

Ghidra address:
BRD3D: 0x105754a4
Ghidra address:
BRGlide: 0x104b164c

◆ g_pfnEarShutDownEvent

EarProc2 g_pfnEarShutDownEvent
extern

_EAR_DLL_ShutDownEvent of the EAR library.

Ghidra address:
BRD3D: 0x10575498
Ghidra address:
BRGlide: 0x104b1640

◆ g_pfnEarShutDownMatrix

EarProc1 g_pfnEarShutDownMatrix
extern

_EAR_DLL_ShutDownMatrix of the EAR library.

Ghidra address:
BRD3D: 0x1057545c
Ghidra address:
BRGlide: 0x104b1604

◆ g_pfnEarShutDownPreset

EarProc1 g_pfnEarShutDownPreset
extern

_EAR_DLL_ShutDownPreset of the EAR library.

Ghidra address:
BRD3D: 0x10575490
Ghidra address:
BRGlide: 0x104b1638

◆ g_pfnEarStartEvent

EarProc1 g_pfnEarStartEvent
extern

_EAR_DLL_StartEvent of the EAR library.

Ghidra address:
BRD3D: 0x1057547c
Ghidra address:
BRGlide: 0x104b1624

◆ g_pfnEarStartTimer

EarProc0 g_pfnEarStartTimer
extern

_EAR_DLL_StartTimer of the EAR library.

Ghidra address:
BRD3D: 0x1057549c
Ghidra address:
BRGlide: 0x104b1644

◆ g_pfnEarShutDownTimer

EarProc0 g_pfnEarShutDownTimer
extern

_EAR_DLL_ShutDownTimer of the EAR library.

Ghidra address:
BRD3D: 0x10575468
Ghidra address:
BRGlide: 0x104b1610

◆ g_pfnEarUpdateEar

EarProc0 g_pfnEarUpdateEar
extern

_EAR_DLL_UpdateEar of the EAR library.

Ghidra address:
BRD3D: 0x105754bc
Ghidra address:
BRGlide: 0x104b1664