alexbw / novocaine

Painless high-performance audio on iOS and Mac OS X
http://alexbw.github.com/novocaine/
MIT License
2.23k stars 273 forks source link

Don't hardcode the sampling rate, get it from the hardware #134

Open baspellis opened 5 years ago

baspellis commented 5 years ago

For iOS a sampling rate of 44,100 Hz is hardcoded. For newer iOS devices the sampling rate is 48,000 Hz. This causes a crash on setup. Sampling rate is for iOS already determined from the Hardware.

brownemint commented 4 years ago

Please merge. This is a vital update for anyone who may be experiencing issues with Novocaine, especially with iPhone 11's and iOS 13. Didn't register as a crash with Apple either, so almost impossible to get reports back from users.