I'm rewriting the ExtAudioFileConvert.cpp sample from Apple to do some extra output file handling... I am not going to be calling it more than once, so I should have no re-entrancy issues.
I'm also rewriting it in C.
Since I haven't had a lot of experience with mutex locking or thread handling, I was hoping not to copy and paste tho...
Hi everyone. I'm making some progress on taking a compressed (mp3) sound and saving it as PCM. In addition, I wanted to split the original file into chunks that are 2 seconds long, within the same process. I seem to be successful, but I am a little confused as to why.
As I read blocks of audio and write the files out, I check to see ...
I'm trying to write raw audio bytes to a file using AudioFileWriteBytes(). Here's what I'm doing:
void writeSingleChannelRingBufferDataToFileAsSInt16(AudioFileID audioFileID, AudioConverterRef audioConverter, ringBuffer *rb, SInt16 *holdingBuffer) {
// First, figure out which bits of audio we'll be
// writing to file from the ring buff...