AudioQueue recording as float
- by niklassaers
Hi guys,
I would like to have the result from my recording as a float in the range [0.0, 1.0], alternatively [-1.0, 1.0] because of a bit of math I want to do on it.
When I set my recordingformat to be in float, like this:
mRecordFormat.mFormatFlags = kLinearPCMFormatFlagIsFloat;
I get:
Error: AudioQueueNewInput failed ('fmt?')
Does this mean the hardware doesn't support recording to floats? If not, how do I set it to record in floats? If so, are there any processor-friendly ways I can convert a signed integer array to a float array?
Cheers
Nik