Re: How to access the output stream in AUGraph
Re: How to access the output stream in AUGraph
- Subject: Re: How to access the output stream in AUGraph
- From: Sanoj Nambi <email@hidden>
- Date: Thu, 24 Jun 2010 15:50:51 -0500
Thanks for letting me know about the
CAAudioUnitOutputCapturer.h.It made my life easy.I did invoke the start and stop function defined in the CAAudioUnitOutputCapturer.h however I cannot play the file.It seems the file is getting created with some data in it.But I cannot play the file.I used .aif as the output file type with following desp.
anASBD.mFormatID = kAudioFormatLinearPCM;
anASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger |
kAudioFormatFlagIsBigEndian | kAudioFormatFlagIsPacked;
anASBD.mSampleRate = 44100;
anASBD.mChannelsPerFrame = 2;
anASBD.mFramesPerPacket = 1;
anASBD.mBytesPerPacket=anASBD.mChannelsPerFrame * sizeof (SInt16);
anASBD.mBytesPerFrame =anASBD.mChannelsPerFrame * sizeof (SInt16);
anASBD.mBitsPerChannel = 16;
captor=new CAAudioUnitOutputCapturer(mMixer, (CFURLRef)url1, kAudioFileAIFFType, anASBD);
mMixer-Mixer Audio Unit
url1-output file url
is the AudioStreamBasicDescription correct for the aif file.
Also I am still using RemoteIO AU instead of GenericOutput.Does that make any difference?
Regards,
Nambi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden