Browse Source

audio: fix case of get_speaker_setup/set_speaker_setup methods

rdb 8 years ago
parent
commit
a866f9fbcb

+ 2 - 2
panda/src/audio/audioManager.cxx

@@ -170,7 +170,7 @@ get_null_sound() {
  *
  */
 int AudioManager::
-getSpeakerSetup() {
+get_speaker_setup() {
   // intentionally blank
   return 0;
 }
@@ -179,7 +179,7 @@ getSpeakerSetup() {
  *
  */
 void AudioManager::
-setSpeakerSetup(SpeakerModeCategory cat) {
+set_speaker_setup(SpeakerModeCategory cat) {
   // intentionally blank
 }
 

+ 2 - 2
panda/src/audio/audioManager.h

@@ -62,8 +62,8 @@ PUBLISHED:
     SM_stream,
   };
 
-  virtual int getSpeakerSetup();
-  virtual void setSpeakerSetup(SpeakerModeCategory cat);
+  virtual int get_speaker_setup();
+  virtual void set_speaker_setup(SpeakerModeCategory cat);
   virtual bool configure_filters(FilterProperties *config);
 
   // Create an AudioManager for each category of sounds you have.  E.g.

+ 2 - 2
panda/src/audiotraits/fmodAudioManager.cxx

@@ -447,7 +447,7 @@ get_sound(MovieAudio *source, bool positional, int) {
  * This is to query if you are using a MultiChannel Setup.
  */
 int FmodAudioManager::
-getSpeakerSetup() {
+get_speaker_setup() {
   ReMutexHolder holder(_lock);
   FMOD_RESULT result;
   FMOD_SPEAKERMODE speakerMode;
@@ -502,7 +502,7 @@ getSpeakerSetup() {
  * init or re-init the AudioManagers after Panda is running.
  */
 void FmodAudioManager::
-setSpeakerSetup(AudioManager::SpeakerModeCategory cat) {
+set_speaker_setup(AudioManager::SpeakerModeCategory cat) {
   ReMutexHolder holder(_lock);
   FMOD_RESULT result;
   FMOD_SPEAKERMODE speakerModeType = (FMOD_SPEAKERMODE)cat;

+ 2 - 2
panda/src/audiotraits/fmodAudioManager.h

@@ -91,8 +91,8 @@ public:
   virtual PT(AudioSound) get_sound(const string&, bool positional = false, int mode=SM_heuristic);
   virtual PT(AudioSound) get_sound(MovieAudio *,  bool positional = false, int mode=SM_heuristic);
 
-  virtual int getSpeakerSetup();
-  virtual void setSpeakerSetup(SpeakerModeCategory cat);
+  virtual int get_speaker_setup();
+  virtual void set_speaker_setup(SpeakerModeCategory cat);
 
   virtual void set_volume(PN_stdfloat);
   virtual PN_stdfloat get_volume() const;