how to change audiounit output buffer size?
I use AudioUnit to play sound stream, but the renderCallback just use 1024 bytes buffer, and I need 8 * 1024, how to change the buffer size, anyone can help me? Thaks a lot!
I open stream playback like this:
AudioUnitSetProperty (
io_unit_instance, // 5
kAudioUnitProperty_SetRenderCallback, // 6
kAudioUnitScope_Input, // 7
outputBus, // 8
&renderCallbackStruct, // 9
sizeof (renderCallbackStruct) // 10
);
|