1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
JUCE/modules
reuk 3506d66fae
iOS Audio: Always deactivate device before setting new preferred samplerate
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.
2024-10-28 11:12:47 +00:00
..
juce_analytics Singleton: Add new macros to simplify singleton creation 2024-10-16 10:36:52 +01:00
juce_animation VBlankAnimatorUpdater: Use the timestamp provided by VBlankAttachment 2024-10-25 15:45:56 +02:00
juce_audio_basics Windows: Fix DLL build 2024-10-22 13:24:46 +01:00
juce_audio_devices iOS Audio: Always deactivate device before setting new preferred samplerate 2024-10-28 11:12:47 +00:00
juce_audio_formats Bump version number to 8.0.3 2024-10-15 22:16:12 +01:00
juce_audio_plugin_client AAX Client: Add support for AAX_EPlugInCategory_MIDIEffect, added in AAX SDK 2.6.1 2024-10-28 11:12:47 +00:00
juce_audio_processors WindowsDLL: Add missing JUCE_API attributes 2024-10-27 16:16:26 +00:00
juce_audio_utils Bump version number to 8.0.3 2024-10-15 22:16:12 +01:00
juce_box2d Bump version number to 8.0.3 2024-10-15 22:16:12 +01:00
juce_core WindowsDLL: Add missing JUCE_API attributes 2024-10-27 16:16:26 +00:00
juce_cryptography Bump version number to 8.0.3 2024-10-15 22:16:12 +01:00
juce_data_structures Bump version number to 8.0.3 2024-10-15 22:16:12 +01:00
juce_dsp WindowsDLL: Add missing JUCE_API attributes 2024-10-27 16:16:26 +00:00
juce_events Windows: Fix DLL build 2024-10-22 13:24:46 +01:00
juce_graphics TextLayout: Fix getStringBounds of empty strings 2024-10-24 19:40:42 +01:00
juce_gui_basics WindowsDLL: Add missing JUCE_API attributes 2024-10-27 16:16:26 +00:00
juce_gui_extra Windows: Fix DLL build 2024-10-22 13:24:46 +01:00
juce_midi_ci Bump version number to 8.0.3 2024-10-15 22:16:12 +01:00
juce_opengl ComponentPeer::VBlankListener: Add timestamp parameter to the vblank callback 2024-10-25 15:44:34 +02:00
juce_osc Bump version number to 8.0.3 2024-10-15 22:16:12 +01:00
juce_product_unlocking Windows: Fix DLL build 2024-10-22 13:24:46 +01:00
juce_video Singleton: Add new macros to simplify singleton creation 2024-10-16 10:36:52 +01:00
CMakeLists.txt Animation: Add juce_animation module 2024-04-16 17:43:21 +01:00