• 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: AURemoteIO asbd format don't work with ExtAudioFile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AURemoteIO asbd format don't work with ExtAudioFile


  • Subject: Re: AURemoteIO asbd format don't work with ExtAudioFile
  • From: Mark's Studio <email@hidden>
  • Date: Mon, 19 Jan 2009 20:00:34 +0100

Thanks to self

OK i found the kExtAudioFileProperty_ClientDataFormat property, so i got it to work.


ExtAudioFileSetProperty(audioFileID, kExtAudioFileProperty_ClientDataFormat, sizeof(AudioStreamBasicDescription), &thruFormat);



On 19/01/2009, at 18.46, Mark's Studio wrote:

I am trying to create a ExtAudioFile with the format from the AURemoteIO but i get fmt?

it's all based on the auriotouch sample.



UInt32 size = sizeof(hwSampleRate);
XThrowIfError (AudioSessionGetProperty (kAudioSessionProperty_CurrentHardwareSampleRate, &size, &hwSampleRate), "couldn't get hw sample rate");



XThrowIfError(SetupRemoteIO( rioUnit, inputProc, thruFormat), "couldn't setup remote i/o unit");


			audioFormat.mSampleRate			= hwSampleRate;
			audioFormat.mFormatID			= thruFormat.mFormatID;
			audioFormat.mFormatFlags		= thruFormat.mFormatFlags;
			audioFormat.mFramesPerPacket	= thruFormat.mFramesPerPacket;
			audioFormat.mChannelsPerFrame	= thruFormat.mChannelsPerFrame;
			audioFormat.mBitsPerChannel		= thruFormat.mBitsPerChannel;
			audioFormat.mBytesPerPacket		= thruFormat.mBytesPerPacket;
			audioFormat.mBytesPerFrame		= thruFormat.mBytesPerFrame;


OSStatus fileErr = ExtAudioFileCreateWithURL ( fileURL, kAudioFileCAFType, &audioFormat, NULL, kAudioFileFlags_EraseFile, &audioFileID );

and this is the values of the asbd

		.mSampleRate			= 44100;
		.mFormatID			= lpcm;
		.mFormatFlags		= 0x2c2;
		.mFramesPerPacket	= 1;
		.mChannelsPerFrame	= 2;
		.mBitsPerChannel		= 32;
		.mBytesPerPacket		= 4;
		.mBytesPerFrame		= 4;



PS have anyone successfully changed the asbd format of the AURemoteIO ?


Peter Mark

Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078
Fax: +45 35366038
Mobile: +45 20416018
www.marks-studio.dk
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

Peter Mark

Mark's Recording Studio A/S
Lundeskovsvej 3
2900 Hellerup
Denmark
Tel: +45 35366078
Fax: +45 35366038
Mobile: +45 20416018
www.marks-studio.dk
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: 
 >AURemoteIO asbd format don't work with ExtAudioFile (From: Mark's Studio <email@hidden>)

  • Prev by Date: Re: setting the property of peak limiter
  • Next by Date: Re: setting the property of peak limiter
  • Previous by thread: AURemoteIO asbd format don't work with ExtAudioFile
  • Next by thread: iPhone kAudioUnitSubType_RemoteIO what does AudioStreamBasicDescription.mFormatFlags = 3116 mean?
  • Index(es):
    • Date
    • Thread