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: William Stewart <email@hidden>
- Date: Thu, 24 Jun 2010 19:42:45 -0700
On Jun 24, 2010, at 1:50 PM, Sanoj Nambi wrote:
> 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
>
This looks ok to me.
Are you sure that you are stopping the output capturer, so that it closes the file?
>
>
> is the AudioStreamBasicDescription correct for the aif file.
>
> Also I am still using RemoteIO AU instead of GenericOutput.Does that make any difference?
nope.
>
> 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
_______________________________________________
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