mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added support for extremely high sample rates to audio devices
This commit is contained in:
parent
2666842fa5
commit
86b4fd72a0
3 changed files with 15 additions and 18 deletions
|
|
@ -346,11 +346,9 @@ public:
|
|||
|
||||
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]);
|
||||
for (auto rate : { 32000, 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000, 705600, 768000 })
|
||||
if (asioObject->canSampleRate ((double) rate) == 0)
|
||||
newRates.add ((double) rate);
|
||||
}
|
||||
|
||||
if (newRates.isEmpty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue