• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to access the output stream in AUGraph
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: How to access the output stream in AUGraph (From: Sanoj Nambi <email@hidden>)

  • Prev by Date: Do iPhone audio session interruptions effect volume of samples generated by audio queues in offline render mode?
  • Next by Date: Re: QuickTime movie audio samples access on iOS
  • Previous by thread: Re: How to access the output stream in AUGraph
  • Next by thread: Re: How to access the output stream in AUGraph
  • Index(es):
    • Date
    • Thread