I have an AudioUnit running and in its callback routine I
have a call to AudioUnitFillComplexBuffer ()
The parameters being supplied to the call to AudioUnitFillComplexBuffer
are
AudioUnitFillComplexBuffer (sConverter, ACComplexInputProc,
inUserData, &inNumFrames, ioData, outDescription);
The values for the parameters are
sConverter - a valid converter
ACComplexInputProc – it’s a function pointer
inUserData = NULL
inNumFrames = 512
ioData = a ptr to an AudioBufferList where mNumberBuffers ==
1;
outDescription = NULL;
When the application starts, when I call AudioUnitFillComplexBuffer
I get ~ 2 successful calls to my callback ACComplexInputProc and since I don’t
Have any valid audio data at the time, I set
ioData->mBuffers[0].mData = NULL;
ioData->mBuffers[0].mDataByteSize = 0;
and
return (noErr);
after the ~2 successful calls through AudioUnitFillComplexBuffer,
it stops calling through to my specified callback (ACComplexInputProc), but
still returns noErr.
Does anyone know what’s up here? My AudioUnit is
still running, requesting data, but my audio converter just quits responding.
Any help would be GREATLY appreciated!!!!!
-Stephen
p.s. is there any routine to check the status of an audio
converter?