audiounit

Can anybody help me in recording iPhone output sound through Audio Unit

﹥>﹥吖頭↗ 提交于 2019-11-26 22:40:40
问题 this is my code : i use this code to record the iPhone output audio by using Audio Unit then saving the output in output.caf but the output.caf file is empty any body have idea about what shall i do ? the output audio file is empty this is intializing the audio unit -(void) initializaeOutputUnit { OSStatus status; // Describe audio component AudioComponentDescription desc; desc.componentType = kAudioUnitType_Output; desc.componentSubType = kAudioUnitSubType_RemoteIO; desc.componentFlags = 0;

Write Audio To Disk From IO Unit

ⅰ亾dé卋堺 提交于 2019-11-26 16:21:33
问题 Rewriting this question to be a little more succient. My problem is that I cant successfully write an audio file to disk from a remote IO Unit. The steps I took were to Open an mp3 file and extract its audio to buffers. I set up an asbd to use with my graph based on the properties of the graph. I setup and run my graph looping the extracted audio and sound successfully comes out the speaker! What I'm having difficulty with is taking the audio samples from the remote IO callback and writing