iphone - AudioUnit Input Samples -
so having trouble here audiounit taking in data microphone/line-in in ios. able set think okay , calling recordingcallback, data getting out of buffer not correct. returns same thing, zeros , random large numbers. know causing this. code follows. setting audio unit osstatus status; // describe audio component audiocomponentdescription desc; desc.componenttype = kaudiounittype_output; desc.componentsubtype = kaudiounitsubtype_remoteio; desc.componentflags = 0; desc.componentflagsmask = 0; desc.componentmanufacturer = kaudiounitmanufacturer_apple; // component audiocomponent inputcomponent = audiocomponentfindnext(null, &desc); status = audiocomponentinstancenew(inputcomponent, &audiounit); // enable io recording uint32 flag = 1; status = audiounitsetproperty(audiounit, kaudiooutputunitproperty_enableio, kaudiounitscope_input, kinputbusnumber, ...