Browse Source

lets try this shit

Cary Sandvig 25 years ago
parent
commit
b5d745d230
2 changed files with 3 additions and 2 deletions
  1. 2 1
      panda/src/audio/audio_manager.h
  2. 1 1
      panda/src/audio/audio_sound.cxx

+ 2 - 1
panda/src/audio/audio_manager.h

@@ -32,7 +32,8 @@ private:
 
   typedef void UpdateFunc(void);
   typedef void ShutdownFunc(void);
-  typedef set<PT(AudioSound)> LoopSet;
+  //  typedef set<PT(AudioSound)> LoopSet;
+  typedef set<AudioSound*> LoopSet;
   static AudioManager* _global_ptr;
   static UpdateFunc* _update_func;
   static ShutdownFunc* _shutdown_func;

+ 1 - 1
panda/src/audio/audio_sound.cxx

@@ -18,7 +18,7 @@ TypeHandle AudioSound::_type_handle;
 AudioSound::~AudioSound(void) {
   if (audio_cat->is_debug())
     audio_cat->debug() << "AudioSound destructor" << endl;
-  //AudioManager::stop(this);
+  AudioManager::stop(this);
   (*_delstate)(_state);
 }