AudioKit error messages with microphone input

陌路散爱 提交于 2020-03-03 11:53:32

问题


I am working on an amplitude-based visualizer for macOS using the latest versions of AudioKit (4.9.3), Swift (5.1.3), Xcode (11.3), and macOS (10.15.2). I had this working at one time (using earlier versions of each of those things), but now I get the following error messages at runtime:

2019-12-14 17:48:45.549957-0500 Dockside2[903:10790] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46

2019-12-14 17:48:45.564757-0500 Dockside2[903:10790] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine

2019-12-14 17:48:45.566473-0500 Dockside2[903:10790] [ddagg] AggregateDevice.mm:790 couldn't get default input device, ID = 0, err = 0!

2019-12-14 17:48:45.582337-0500 Dockside2[903:10790] [avae] AVAEInternal.h:76 required condition is false: [AVAudioIONodeImpl.mm:1063:SetOutputFormat: (IsFormatSampleRateAndChannelCountValid(hwFormat))]

This is the function I call to initialize AudioKit:

func startAudioKit() {
    AKSettings.audioInputEnabled = true
    input = AKMicrophone()
    amplitudeTracker = AKAmplitudeTracker(input)
    AudioKit.output = AKBooster(amplitudeTracker, gain: 0)
    do {
        try AudioKit.start()
    } catch {
        AKLog("AudioKit did NOT START")
    }
    input.start()
    amplitudeTracker?.start()
}

Can anyone make heads or tails of these errors? Extensive searches haven’t yielded anything.

As far as the error regarding AggregateDevices, that's interesting because I am not trying to use an aggregate audio device. I am just trying to get it to work with the default microphone input. However, I should mention that in a previous version of my app, which was actually working at one point, I was using an aggregate device via SoundFlower for the input. I have since uninstalled SoundFlower entirely and removed the aggregate inputs from Audio MIDI Setup.

Update: If I run the MicrophoneAnalysis example exactly as provided from AudioKit.io, that doesn’t work for me either. I get these similar error messages:

2019-12-17 20:00:49.324667-0500 MicrophoneAnalysis[32636:1283453] [plugin] AddInstanceForFactory: No factory registered for id F8BB1C28-BAE8-11D6-9C31-00039315CD46

2019-12-17 20:00:49.346706-0500 MicrophoneAnalysis[32636:1283453] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine

2019-12-17 20:00:49.347044-0500 MicrophoneAnalysis[32636:1283453] HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine

2019-12-17 20:00:49.370055-0500 MicrophoneAnalysis[32636:1283453] [avae] AVAEInternal.h:76 required condition is false: [AVAudioIONodeImpl.mm:1064:SetOutputFormat: (format.sampleRate == hwFormat.sampleRate)]

2019-12-17 20:00:49.370288-0500 MicrophoneAnalysis[32636:1283453] Failed to set (contentViewController) user defined inspected property on (NSWindow): required condition is false: format.sampleRate == hwFormat.sampleRate

来源:https://stackoverflow.com/questions/59363823/audiokit-error-messages-with-microphone-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!