1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-22 01:34:21 +00:00

Added some extra sample rates to some of the AudioFormat classes.

This commit is contained in:
jules 2013-02-22 14:51:52 +00:00
parent 9fbc963d96
commit 4f8d094eee
4 changed files with 21 additions and 13 deletions

View file

@ -23,7 +23,6 @@
==============================================================================
*/
#ifndef JUCE_LOG_COREMIDI_ERRORS
#define JUCE_LOG_COREMIDI_ERRORS 1
#endif

View file

@ -492,14 +492,17 @@ FlacAudioFormat::~FlacAudioFormat()
Array<int> FlacAudioFormat::getPossibleSampleRates()
{
const int rates[] = { 22050, 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 0 };
return Array <int> (rates);
const int rates[] = { 8000, 11025, 12000, 16000, 22050, 32000, 44100, 48000,
88200, 96000, 176400, 192000, 352800, 384000 };
return Array<int> (rates, numElementsInArray (rates));
}
Array<int> FlacAudioFormat::getPossibleBitDepths()
{
const int depths[] = { 16, 24, 0 };
return Array <int> (depths);
const int depths[] = { 16, 24 };
return Array<int> (depths, numElementsInArray (depths));
}
bool FlacAudioFormat::canDoStereo() { return true; }

View file

@ -437,14 +437,17 @@ OggVorbisAudioFormat::~OggVorbisAudioFormat()
Array<int> OggVorbisAudioFormat::getPossibleSampleRates()
{
const int rates[] = { 22050, 32000, 44100, 48000, 88200, 96000, 176400, 192000, 0 };
return Array <int> (rates);
const int rates[] = { 8000, 11025, 12000, 16000, 22050, 32000,
44100, 48000, 88200, 96000, 176400, 192000 };
return Array<int> (rates, numElementsInArray (rates));
}
Array<int> OggVorbisAudioFormat::getPossibleBitDepths()
{
const int depths[] = { 32, 0 };
return Array <int> (depths);
const int depths[] = { 32 };
return Array<int> (depths, numElementsInArray (depths));
}
bool OggVorbisAudioFormat::canDoStereo() { return true; }

View file

@ -1086,14 +1086,17 @@ WavAudioFormat::~WavAudioFormat()
Array<int> WavAudioFormat::getPossibleSampleRates()
{
const int rates[] = { 22050, 32000, 44100, 48000, 88200, 96000, 176400, 192000, 0 };
return Array <int> (rates);
const int rates[] = { 8000, 11025, 12000, 16000, 22050, 32000,
44100, 48000, 88200, 96000, 176400, 192000 };
return Array<int> (rates, numElementsInArray (rates));
}
Array<int> WavAudioFormat::getPossibleBitDepths()
{
const int depths[] = { 8, 16, 24, 32, 0 };
return Array <int> (depths);
const int depths[] = { 8, 16, 24, 32 };
return Array<int> (depths, numElementsInArray (depths));
}
bool WavAudioFormat::canDoStereo() { return true; }