mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
This fixes a bug on iOS 17 running on a 9th gen iPad. - Set JUCE_IOS_AUDIO_EXPLICIT_SAMPLERATES=44100,48000,88200,96000 - Start the DemoRunner. - Add a breakpoint in AudioDeviceManager::audioDeviceAboutToStartInt(). - In the DemoRunner, change the sample rate to 96000. - The breakpoint will fire. Observe the value of getCurrentBufferSizeSamples(). - Move the breakpoint to audioDeviceIOCallbackInt and continue execution. - The breakpoint will fire. Observe the value of the numSamples parameter. numSamples should always be no larger than the sample count reported in audioDeviceAboutToStartInt(). Before this change, it was possible for getCurrentBufferSizeSamples() to return a value smaller than the buffer size of subsequent process callbacks. Removing the availability checks and unconditionally deactivating/reactivating the device seems to fix this issue, and the correct buffer size is returned immediately when the device is (re)started. |
||
|---|---|---|
| .. | ||
| audio_io | ||
| midi_io | ||
| native | ||
| sources | ||
| juce_audio_devices.cpp | ||
| juce_audio_devices.h | ||
| juce_audio_devices.mm | ||