Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm working on a VoIP app and the back end requires specific audio formats.


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; } }];




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: