Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: getAvailableSampleRates() is incorrect on iOS 18. #1507

Open
1 task done
KKQ-KKQ opened this issue Feb 7, 2025 · 0 comments
Open
1 task done

[Bug]: getAvailableSampleRates() is incorrect on iOS 18. #1507

KKQ-KKQ opened this issue Feb 7, 2025 · 0 comments

Comments

@KKQ-KKQ
Copy link

KKQ-KKQ commented Feb 7, 2025

Detailed steps on how to reproduce the bug

On iOS/iPadOS 18, [AVAudioSession sharedInstance].sampleRate seems to be incorrect.

This line uses the function and return the incorrect value.
modules/juce_audio_devices/native/juce_Audio_ios.cpp#L484

I found a workaround for this on the internet.
iOS 18 USB DAC output sampling rate issue

Please use this GetDeviceSamplerate() function on iOS 18.

How to reproduce the bug:

call device->getAvailableSampleRates() on iOS/iPadOS 18 with an audio interface which supports 96kHz.
The return value is 44100.

p.s.
I have never used JUCE framework in my project.
I wrote this report because an app which uses the JUCE only shows one sample rate on iOS 18.x, and shows 4 sample rates on iOS 17.x.

What is the expected behaviour?

All available sample rates (44100, 48000, 88200, 96000 in my case) should be included by the return value.

Operating systems

iOS

What versions of the operating systems?

iOS/iPadOS 18.x

Architectures

Arm64/aarch64

Stacktrace

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • I agree to follow the Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant