Browse Source

Added some speaker arrangements for WavAudioFormat. Removed a conditional in audio_devices.h

tags/2021-05-28
jules 13 years ago
parent
commit
84a0a24b4e
2 changed files with 2 additions and 2 deletions
  1. +0
    -2
      modules/juce_audio_devices/juce_audio_devices.h
  2. +2
    -0
      modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp

+ 0
- 2
modules/juce_audio_devices/juce_audio_devices.h View File

@@ -28,9 +28,7 @@
#include "../juce_events/juce_events.h"
#include "../juce_audio_basics/juce_audio_basics.h"
#if JUCE_USE_CDREADER
#include "../juce_audio_formats/juce_audio_formats.h"
#endif
//=============================================================================
/** Config: JUCE_ASIO


+ 2
- 0
modules/juce_audio_formats/codecs/juce_WavAudioFormat.cpp View File

@@ -843,6 +843,8 @@ private:
case 2: return 1 + 2; // SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT
case 5: return 1 + 2 + 4 + 16 + 32; // SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT
case 6: return 1 + 2 + 4 + 8 + 16 + 32; // SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT
case 7: return 1 + 2 + 4 + 16 + 32 + 512 + 1024; // SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT
case 8: return 1 + 2 + 4 + 8 + 16 + 32 + 512 + 1024; // SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT
default: break;
}


Loading…
Cancel
Save