When I use AudioKit AKMicrophoneTracker on a physical device, the frequency and amplitude are always 0 . But on the playground and in the iOS simulator, it works great.
Here is an example:
class AppDelegate: UIResponder, UIApplicationDelegate { let tracker = AKMicrophoneTracker() func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
I have reset the rights to the physical device to ensure privacy, and iOS correctly tells me to allow access to microphones. It still does not work, although I allow access to microphones.
How can I make AKMicrophoneTracker really read these values?
I am using AudioKit 4.0.3. It works as expected when using:
- AudioKit Playground on my Mac
- iPhone 7 Plus simulator running iOS 11.1
This does not work when using:
- The physical iPhone 7 Plus runs on iOS 11.1.1 (and also runs on iOS 11.1)
I originally posted this as a bug in TrackKout for the AudioKit audio track . However, Aure (a proponent of the project) suggested I post here.
source share