dao::audio

Declared in dao/Audio.h.

Classes

Class  
EventStart One event started, as reported to a callback.

Functions

OnEventStart()

void OnEventStart(std::function<void(const EventStart &sound)> observer)

Registers a callback for every event the game starts, called once FMOD has started it.

Hooks fmod_event.dll’s FMOD::Event::start, so a start by the game through that export is seen, and one that skips it is not. Works in any build, since it needs no address. The observer runs on the thread that started the event, which is the game’s, so keep it short. Events the game starts for its sound objects while an area loads are reported too. A start FMOD refused is not reported.

Parameter  
observer receives the event’s path, place and time