coastline 0.0.4
Loading...
Searching...
No Matches
event.h File Reference
#include <stdint.h>
#include "eventparameters.h"
Include dependency graph for event.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint16_t GenerateEarObjectHandle (void)
 Take the next handle of an event that no active event has, skipping 0.
uint32_t __stdcall EarMixEventExportWrapper (const EarEventParams *params)
uint32_t __stdcall EAR_DLL_MixEvent (const EarEventParams *params)
 Make an event from its parameters and add it to its channel, by its distance, direction, gain, timing, and queue mode, without starting it.
uint32_t __stdcall EarMoveEventExportWrapper (const EarEventParams *params)
uint32_t __stdcall EAR_DLL_MoveEvent (const EarEventParams *params)
 Update an event of a channel from its parameters: its matrix, its pause and mute, its pitch, priority, and times, and its distance, delay, gain, and direction.
uint32_t __stdcall EarStartEventExportWrapper (const EarEventParams *params)
uint32_t __stdcall EAR_DLL_StartEvent (const EarEventParams *params)
 Start the playback of an event the game mixed, at the gain of its channel.
uint32_t __stdcall EarShutDownEventExportWrapper (uintptr_t target, uint32_t control)
uint32_t __stdcall EAR_DLL_ShutDownEvent (uintptr_t target, uint32_t control)
 Stop an event, with a stop control or at once.
uint32_t __stdcall EarGetEventStatusExportWrapper (uint32_t channel, uint32_t event)
uint32_t __stdcall EAR_DLL_GetEventStatus (uint32_t channel, uint32_t event)
 Report the state of an event as flags: 0x1 muted, 0x2 playing, 0x4 active, 0x8 on a sequential channel, 0x10 with a frequency override, 0x20 streaming, 0x40 with its expiry disabled, and 0x80 stopping.

Function Documentation

◆ GenerateEarObjectHandle()

uint16_t GenerateEarObjectHandle ( void )

Take the next handle of an event that no active event has, skipping 0.

Returns
The handle.
Ghidra address:
EAR: 0x1000d730

◆ EarMixEventExportWrapper()

uint32_t __stdcall EarMixEventExportWrapper ( const EarEventParams * params)
Parameters
paramsThe parameters of the event.
Returns
The handle of the event, or 0.
Ghidra address:
EAR: 0x1000cc20

◆ EAR_DLL_MixEvent()

uint32_t __stdcall EAR_DLL_MixEvent ( const EarEventParams * params)

Make an event from its parameters and add it to its channel, by its distance, direction, gain, timing, and queue mode, without starting it.

An event out of its distance is dropped.

Parameters
paramsThe parameters of the event.
Returns
The handle of the event, or 0.
Ghidra address:
EAR: 0x1000cc30

◆ EarMoveEventExportWrapper()

uint32_t __stdcall EarMoveEventExportWrapper ( const EarEventParams * params)
Parameters
paramsThe parameters of the event.
Returns
The handle of the event, or 0.
Ghidra address:
EAR: 0x1000d950

◆ EAR_DLL_MoveEvent()

uint32_t __stdcall EAR_DLL_MoveEvent ( const EarEventParams * params)

Update an event of a channel from its parameters: its matrix, its pause and mute, its pitch, priority, and times, and its distance, delay, gain, and direction.

Parameters
paramsThe parameters of the event.
Returns
The handle of the event, or 0.
Ghidra address:
EAR: 0x1000d960

◆ EarStartEventExportWrapper()

uint32_t __stdcall EarStartEventExportWrapper ( const EarEventParams * params)
Parameters
paramsThe parameters of the event.
Returns
The handle of the event, or 0.
Ghidra address:
EAR: 0x1000f950

◆ EAR_DLL_StartEvent()

uint32_t __stdcall EAR_DLL_StartEvent ( const EarEventParams * params)

Start the playback of an event the game mixed, at the gain of its channel.

Parameters
paramsThe parameters of the event.
Returns
The handle of the event, or 0.
Ghidra address:
EAR: 0x1000f960

◆ EarShutDownEventExportWrapper()

uint32_t __stdcall EarShutDownEventExportWrapper ( uintptr_t target,
uint32_t control )
Parameters
targetThe parameters of the event, or its handle when the high word of the control is 1.
controlThe stop control in the low word, and the kind of the target in the high word.
Returns
The handle of the event for a stop control, else 0.
Ghidra address:
EAR: 0x1000f450

◆ EAR_DLL_ShutDownEvent()

uint32_t __stdcall EAR_DLL_ShutDownEvent ( uintptr_t target,
uint32_t control )

Stop an event, with a stop control or at once.

An event stopped at once leaves the registry of the active events.

Parameters
targetThe parameters of the event, or its handle when the high word of the control is 1.
controlThe stop control in the low word, and the kind of the target in the high word.
Returns
The handle of the event for a stop control, else 0.
Ghidra address:
EAR: 0x1000f464

◆ EarGetEventStatusExportWrapper()

uint32_t __stdcall EarGetEventStatusExportWrapper ( uint32_t channel,
uint32_t event )
Parameters
channelThe channel.
eventThe event, 0 for the most recent of a sequential channel.
Returns
The status of the event.
Ghidra address:
EAR: 0x1000c6a0

◆ EAR_DLL_GetEventStatus()

uint32_t __stdcall EAR_DLL_GetEventStatus ( uint32_t channel,
uint32_t event )

Report the state of an event as flags: 0x1 muted, 0x2 playing, 0x4 active, 0x8 on a sequential channel, 0x10 with a frequency override, 0x20 streaming, 0x40 with its expiry disabled, and 0x80 stopping.

Parameters
channelThe channel.
eventThe event, 0 for the most recent of a sequential channel.
Returns
The status of the event.
Ghidra address:
EAR: 0x1000c6b4