coastline 0.0.4
Loading...
Searching...
No Matches
EarEventParams Struct Reference

The parameters of an event, as the game passes them to MixEvent and MoveEvent. More...

#include <eventparameters.h>

Public Attributes

uint16_t size
uint16_t sourceType
const void * source
uint32_t eventHandle
uint16_t channelHandle
uint16_t matrixHandle
uint16_t minimumGain
uint16_t maximumGain
uint32_t maximumDistance
uint32_t minimumDistance
uint32_t flags
uint8_t unknown20 [4]
 Unrecovered parameter bytes at the original offset.
uint32_t reservedControl
uint16_t direction
uint16_t startDelay
int32_t lifetime
int32_t activeTime
uint32_t queueControl
 The EarEventQueueMode in the low word, and the event it refers to in the high word.
uint16_t environmentHandle
uint8_t unknown3a [2]
 Unrecovered parameter bytes at the original offset.
uint16_t priority
uint16_t frequencyScale
uint16_t baseFrequencyScale
uint16_t startPosition
uint16_t limitDistance
uint8_t unknown46 [6]
 Unrecovered parameter bytes at the original offset.
uint16_t pitchVariation
uint16_t backendParameter
 The parameter of the backend in ten-thousandths, 0xffff for -1.
uint8_t unknown50 [0x10]
 Unrecovered parameter bytes at the original offset.
uint32_t distanceUnit
int32_t positionX
int32_t positionY
int32_t positionZ
uint16_t distanceBands [EAR_EVENT_DISTANCE_BAND_COUNT+1]
 The boundaries of the bands, in ten-thousandths of the maximum distance.
uint8_t unknown7e [2]
 Unrecovered parameter bytes at the original offset.

Detailed Description

The parameters of an event, as the game passes them to MixEvent and MoveEvent.

Member Data Documentation

◆ size

uint16_t EarEventParams::size

The size of the parameters, 0x80.

◆ sourceType

uint16_t EarEventParams::sourceType

The type of the source in the low byte, its flags above.

◆ source

const void* EarEventParams::source

The source of the samples.

◆ eventHandle

uint32_t EarEventParams::eventHandle

The event.

◆ channelHandle

uint16_t EarEventParams::channelHandle

The channel the event plays on.

◆ matrixHandle

uint16_t EarEventParams::matrixHandle

The directional matrix.

◆ minimumGain

uint16_t EarEventParams::minimumGain

The gain at the maximum distance and beyond.

◆ maximumGain

uint16_t EarEventParams::maximumGain

The gain at the minimum distance and nearer.

◆ maximumDistance

uint32_t EarEventParams::maximumDistance

The distance of the minimum gain.

◆ minimumDistance

uint32_t EarEventParams::minimumDistance

The distance of the maximum gain.

◆ flags

uint32_t EarEventParams::flags

◆ unknown20

uint8_t EarEventParams::unknown20[4]

Unrecovered parameter bytes at the original offset.

◆ reservedControl

uint32_t EarEventParams::reservedControl

The reserved control of an event of source type 6.

◆ direction

uint16_t EarEventParams::direction

The direction of an event that is not directional.

◆ startDelay

uint16_t EarEventParams::startDelay

The delay before the event starts, in milliseconds.

◆ lifetime

int32_t EarEventParams::lifetime

The time the event lives after its delay, in milliseconds.

◆ activeTime

int32_t EarEventParams::activeTime

The time the event may play, in milliseconds.

◆ queueControl

uint32_t EarEventParams::queueControl

The EarEventQueueMode in the low word, and the event it refers to in the high word.

◆ environmentHandle

uint16_t EarEventParams::environmentHandle

The environment.

◆ unknown3a

uint8_t EarEventParams::unknown3a[2]

Unrecovered parameter bytes at the original offset.

◆ priority

uint16_t EarEventParams::priority

The priority of the event.

◆ frequencyScale

uint16_t EarEventParams::frequencyScale

The scale of the frequency, in ten-thousandths.

◆ baseFrequencyScale

uint16_t EarEventParams::baseFrequencyScale

The scale of the base frequency, in ten-thousandths.

◆ startPosition

uint16_t EarEventParams::startPosition

The position the playback starts at, in ten-thousandths.

◆ limitDistance

uint16_t EarEventParams::limitDistance

The distance beyond which the event stops.

◆ unknown46

uint8_t EarEventParams::unknown46[6]

Unrecovered parameter bytes at the original offset.

◆ pitchVariation

uint16_t EarEventParams::pitchVariation

The range of the variation of the pitch, 0 for the default.

◆ backendParameter

uint16_t EarEventParams::backendParameter

The parameter of the backend in ten-thousandths, 0xffff for -1.

◆ unknown50

uint8_t EarEventParams::unknown50[0x10]

Unrecovered parameter bytes at the original offset.

◆ distanceUnit

uint32_t EarEventParams::distanceUnit

The entry of g_adDistanceUnitToCentimeters.

◆ positionX

int32_t EarEventParams::positionX

The position across, from the listener.

◆ positionY

int32_t EarEventParams::positionY

The position up, from the listener.

◆ positionZ

int32_t EarEventParams::positionZ

The position ahead, from the listener.

◆ distanceBands

uint16_t EarEventParams::distanceBands[EAR_EVENT_DISTANCE_BAND_COUNT+1]

The boundaries of the bands, in ten-thousandths of the maximum distance.

◆ unknown7e

uint8_t EarEventParams::unknown7e[2]

Unrecovered parameter bytes at the original offset.


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