mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added 32K as a supported ASIO sample rate
This commit is contained in:
parent
e993eb7225
commit
f58eda8f3e
1 changed files with 3 additions and 2 deletions
|
|
@ -365,17 +365,18 @@ public:
|
|||
void updateSampleRates()
|
||||
{
|
||||
// find a list of sample rates..
|
||||
const int possibleSampleRates[] = { 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 };
|
||||
Array<double> newRates;
|
||||
|
||||
if (asioObject != nullptr)
|
||||
{
|
||||
const int possibleSampleRates[] = { 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000 };
|
||||
|
||||
for (int index = 0; index < numElementsInArray (possibleSampleRates); ++index)
|
||||
if (asioObject->canSampleRate ((double) possibleSampleRates[index]) == 0)
|
||||
newRates.add ((double) possibleSampleRates[index]);
|
||||
}
|
||||
|
||||
if (newRates.size() == 0)
|
||||
if (newRates.isEmpty())
|
||||
{
|
||||
double cr = getSampleRate();
|
||||
JUCE_ASIO_LOG ("No sample rates supported - current rate: " + String ((int) cr));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue