extaudiofile

Writing buffer of audio samples to aac file using ExtAudioFileWrite for iOS

半世苍凉 提交于 2019-12-01 18:02:07
问题 UPDATE: I have figured this out and posted my solution as an answer to my own question (below) I am trying to write a simple buffer of audio samples to a file using ExtAudioFileWrite in AAC format. I have achieved this with the code below to write a mono buffer to a .wav file - however, I cannot do this for stereo or for AAC files which is what I want to do. Here is what I have so far... CFStringRef fPath; fPath = CFStringCreateWithCString(kCFAllocatorDefault, "/path/to/my/audiofile/audiofile

Writing buffer of audio samples to aac file using ExtAudioFileWrite for iOS

一世执手 提交于 2019-12-01 17:42:48
UPDATE: I have figured this out and posted my solution as an answer to my own question (below) I am trying to write a simple buffer of audio samples to a file using ExtAudioFileWrite in AAC format. I have achieved this with the code below to write a mono buffer to a .wav file - however, I cannot do this for stereo or for AAC files which is what I want to do. Here is what I have so far... CFStringRef fPath; fPath = CFStringCreateWithCString(kCFAllocatorDefault, "/path/to/my/audiofile/audiofile.wav", kCFStringEncodingMacRoman); OSStatus err; int mChannels = 1; UInt32 totalFramesInFile = 100000;