Sfoglia il codice sorgente

nullsound construct public

cxgeorge 23 anni fa
parent
commit
3b3e021661
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 2 1
      panda/src/audio/config_audio.cxx
  2. 2 1
      panda/src/audio/nullAudioSound.h

+ 2 - 1
panda/src/audio/config_audio.cxx

@@ -26,8 +26,9 @@ NotifyCategoryDef(audio, "");
 bool audio_active 
     =config_audio.GetBool("audio-active", true);
 
+//number of sounds in cache
 int audio_cache_limit 
-    =config_audio.GetInt("audio-cache-limit", 15);
+    =config_audio.GetInt("audio-cache-limit", 15);  
 
 float audio_volume 
     =config_audio.GetFloat("audio-volume", 1.0f);

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

@@ -61,7 +61,8 @@ public:
 
   AudioSound::SoundStatus status() const;
 
-protected:
+// why protect the constructor?!?
+//protected:
   NullAudioSound();
 
   friend class NullAudioManager;