1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CoreAudio: Report error if combined devices don't share a common sample rate

This commit is contained in:
attila 2022-08-19 23:38:16 +02:00
parent 3323c68f96
commit 988d65e24f

View file

@ -1290,6 +1290,9 @@ public:
if (currentBufferSize == 0) if (currentBufferSize == 0)
currentBufferSize = devicePtr->getCurrentBufferSizeSamples(); currentBufferSize = devicePtr->getCurrentBufferSizeSamples();
if (getAvailableSampleRates().isEmpty())
lastError = TRANS("The input and output devices don't share a common sample rate!");
} }
Array<AudioIODevice*> getDevices() const Array<AudioIODevice*> getDevices() const