On Apr 17, 2010, at 1:47 PM, William Stewart wrote:
you also can't do I/O at different sample rates... so if you want 44.1k output, then make sure your category is a play (output only) category.
I've tried using both "kAudioSessionCategory_PlayAndRecord" and "kAudioSessionCategory_MediaPlayback" (the latter should be play/output-only, I think). I think I'm missing something vital. Sorry to be so dense...
UInt32 style="color: #3900de">1;
AudioUnitSetProperty(rioUnit, kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Output, kOutputBus, &one, sizeof(one));
AudioUnitSetProperty(rioUnit, kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input, kOutputBus, &audioFormat, sizeof(audioFormat));
AudioUnitSetProperty(rioUnit, kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input, kOutputBus, &inputProc, sizeof(inputProc));
as per the "Configuring an Audio Unit" docs, etc. Callback gets called, I fill the buffers, no sound. BUT if I add this:
AudioUnitSetProperty(rioUnit, kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Input, kInputBus, &one, sizeof(one));
sound happens! Of course, by accessing the kInputBus, I'm now tied to the default input SR. Is there something I'm not doing in setting up RemoteIO perhaps?
brad