34 #ifndef __diguySoundInstance_H
35 #define __diguySoundInstance_H
41 #define CPLUSPLUS_ONLY
45 class bdiSoundInstance;
46 class bdiScenarioCharacter;
69 const char* get_name();
81 const char* get_type_name();
99 int play(
double offset = 0.0);
111 int get_is_playing();
123 int get_is_stopping();
144 int stop(
float rampdown_time = 0.0f);
164 int set_automatic_destroy_flag();
183 void set_is_3d_sound_flag(
int is_3d_sound_flag);
195 int get_is_3d_sound_flag();
202 #ifdef CPLUSPLUS_ONLY
204 bdiSoundInstance* get_scripted_object() {
return m_scripted_object;}
208 void clear_scripted_object() {m_scripted_object = NULL;}
213 bdiScenarioCharacter* character);
223 bdiSoundInstance* m_scripted_object;
224 bdiScenarioCharacter* m_character;
226 friend class bdiScenarioCharacter;
227 friend class bdiSoundInstance;
228 friend class bdiSoundFactory;
229 friend class bdiSoundFactoryOpenAL;