dao::audio::EventStart
struct
One event started, as reported to a callback.
Declared in dao/Audio.h.
Fields
| Field | Type | |
|---|---|---|
event |
void * = nullptr |
FMOD’s FMOD::Event*, to pass to the fmod_event.dll calls. Valid only during the callback: the game may release the instance once it ends. |
name |
std::string_view |
Just the event’s own name, the last part of path. Valid only during the callback. |
path |
std::string_view |
The event’s full path, “project/group/…/event” as the scripts’ PlaySound names it. Valid only during the callback. Empty if FMOD gave no name. |
position |
float = {0.0F, 0.0F, 0.0F} |
Where the event was last placed, in the engine’s world coordinates. Read only for a 3-D event (FMOD_3D in its mode); otherwise all zero with positional false (music, interface sounds). A 3-D event nobody has placed yet reports its default, usually the origin. |
positional |
bool = false |
|
when |
std::chrono::steady_clock::time_point |
When the start was seen, on the steady clock. |