----------------------------------------------------- Description: Send an audio event to an observer if it is not a nullptr and can be cast to ITr2AudEmitter. Arguments: observer - The observer that you want to send an audio event to. audioEvent - The audio event you want to be sent to the sound engine. -----------------------------------------------------
| 119 | // audioEvent - The audio event you want to be sent to the sound engine. |
| 120 | //----------------------------------------------------- |
| 121 | void SendEventToAudEmitter( TriObserverLocal* observer, const std::wstring& audioEvent ) |
| 122 | { |
| 123 | if( observer != nullptr ) |
| 124 | { |
| 125 | if( ITr2AudEmitter* emitter = dynamic_cast<ITr2AudEmitter*>( observer->GetObserver() ) ) |
| 126 | { |
| 127 | emitter->SendEvent( audioEvent ); |
| 128 | } |
| 129 | } |
| 130 | } |
no test coverage detected