Hi guys, I’m trying to get some audio input from my built in core audio mic, I make an audio device setup as follows:
setup.inputDeviceName = //Core audio built in mic device name from scan setup.useDefaultInputChannels = false; setup.inputChannels.setRange(0, 2, true); setup.outputDeviceName = //Core audio built in output device name from scan setup.sampleRate = 44100 setup.bufferSize = 512 setup.useDefaultOutputChannels = true; //Apply the new audio device setup String connectError = deviceManager.setAudioDeviceSetup(setup, true); //We good? jassert(connectError.isEmpty());
I add the audio callback to the device manager like this:
After that I receive audio callbacks with 2 numInputChannels. The problem is that the input channels are always full of 0.f for some reason, what am I be missing? (I am getting audio input on the recording demo app, and don’t see how the initialise function is any different from settings the device setup manually?).