audio: fix case of get_speaker_setup/set_speaker_setup methods

This commit is contained in:
rdb 2017-07-09 15:46:37 +02:00
parent e45af355cc
commit a866f9fbcb
4 changed files with 8 additions and 8 deletions

View File

@ -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
}

View File

@ -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.

View File

@ -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;

View File

@ -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;