Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
audiocallback.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE_AUDIOCALLBACK_H
13#define TT_INCLUDE_AUDIOCALLBACK_H
14#include "engine_vector.h"
15class SoundSceneObjClass;
16class LogicalListenerClass;
17class LogicalSoundClass;
18class AudioCallbackClass
19{
20public:
21 typedef enum
22 {
23 EVENT_NONE = 0x0000,
24 EVENT_SOUND_STARTED = 0x0001,
25 EVENT_SOUND_ENDED = 0x0002,
26 EVENT_LOGICAL_HEARD = 0x0004
27 } EVENTS;
28 AudioCallbackClass (void);
29 virtual ~AudioCallbackClass (void);
30 virtual void On_Sound_Started (SoundSceneObjClass *sound_obj) { }
31 virtual void On_Sound_Ended (SoundSceneObjClass *sound_obj) { }
32 virtual void On_Logical_Heard (LogicalListenerClass *listener, LogicalSoundClass *sound_obj) { }
33 void On_Registered (SoundSceneObjClass *sound);
34 void On_UnRegistered (SoundSceneObjClass *sound);
35 void Remove_All_Callbacks (void);
36 DynamicVectorClass<SoundSceneObjClass *> SoundList;
37};
38#endif