Browse Source

Forgot to check it in.

Josh Yelon 19 years ago
parent
commit
78c4be1c83
2 changed files with 18 additions and 3 deletions
  1. 1 1
      panda/src/audio/audioManager.cxx
  2. 17 2
      panda/src/audio/audioManager.h

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

@@ -197,7 +197,7 @@ getSpeakerSetup() {
 //  Description: 
 //  Description: 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void AudioManager::
 void AudioManager::
-setSpeakerSetup(SPEAKERMODE_category cat) {
+setSpeakerSetup(SpeakerModeCategory cat) {
   // intentionally blank
   // intentionally blank
 }
 }
 
 

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

@@ -60,7 +60,7 @@ PUBLISHED:
     DSP_COUNT
     DSP_COUNT
   };
   };
   
   
-  enum SPEAKERMODE_category{
+  enum SpeakerModeCategory {
     // These enumerants line up one-to-one
     // These enumerants line up one-to-one
     // with the FMOD SPEAKERMODE enumerants.
     // with the FMOD SPEAKERMODE enumerants.
     SPEAKERMODE_raw, 
     SPEAKERMODE_raw, 
@@ -75,13 +75,28 @@ PUBLISHED:
     SPEAKERMODE_COUNT
     SPEAKERMODE_COUNT
   };
   };
   
   
+
+  enum SpeakerId {
+    SPK_none,
+    SPK_frontleft,
+    SPK_frontright,
+    SPK_center,
+    SPK_sub,
+    SPK_backleft,
+    SPK_backright,
+    SPK_sideleft,
+    SPK_sideright,
+    SPK_COUNT,
+  };
+
+
   virtual PT(AudioDSP) create_dsp(DSP_category cat);
   virtual PT(AudioDSP) create_dsp(DSP_category cat);
   
   
   virtual bool add_dsp(PT(AudioDSP) x);
   virtual bool add_dsp(PT(AudioDSP) x);
   virtual bool remove_dsp(PT(AudioDSP) x);
   virtual bool remove_dsp(PT(AudioDSP) x);
   
   
   virtual int getSpeakerSetup();
   virtual int getSpeakerSetup();
-  virtual void setSpeakerSetup(SPEAKERMODE_category cat);
+  virtual void setSpeakerSetup(SpeakerModeCategory cat);
   
   
   // Create an AudioManager for each category of sounds you have.
   // Create an AudioManager for each category of sounds you have.
   // E.g.
   // E.g.