Hacker News new | ask | show | jobs
by Tloewald 5188 days ago
I'm working on a VoIP app and the back end requires specific audio formats.
1 comments

You'd use Novocaine to grab the audio, and then you'd do the audio format conversion yourself. e.g.:

[[Novocaine audioManager] setInputBlock:^(float * inData, UInt32 numSamples, UInt32 numChannels) { for (int i=0; i < numSamples * numChannels; ++i) { dataForVoip[i] = YourType(inData[i]) * someScaling; } }];