• 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
Output Audio Unit Format Parameters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Output Audio Unit Format Parameters


  • Subject: Output Audio Unit Format Parameters
  • From: Richard Dearlove <email@hidden>
  • Date: Wed, 01 Oct 2008 19:46:46 +0100

Hi, Im a little confused about the format settings for the HAL output AudioUnit .

In one of the /developer/examples the project generates an output AudioUnit and copies the output format settings ( sample rate etc ) to the Input format of the same unit.

OSStatus result = AudioUnitGetProperty (*theUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0, theDesc, &size);
result = AudioUnitSetProperty (*theUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, theInputBus, theDesc, size);


On a demo piece of code that I have been writing I have this working on Leopard, but it fails when I try and do the same this with the remoteIO unit on the iPhone,


I am able to create an audio converter that outputs the format set from the AudioUnit, but it only works for aif / wav.
For vbr files the following line throws an error, where inASBD is an mp3 format and outASBD is the format of the output AudioUnit.


files      err = AudioConverterNew( inASBD,outASBD , conv);

So.. is the format of the Ouput AudioUnit. something I could choose to be a little more "normal" such as plain 16bit 44.1khz, or can I just adjust the input format and leave the output format at its default ?

Since the NDA has been lifted on released software, I hope this is not breaking any rules about questions. I'm sure it applies to pure OSX too.

best regards
Richard D




_______________________________________________ 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
  • Prev by Date: Multiport midi sequencing
  • Next by Date: Problem with Logic Pro 8 and VSTGUI
  • Previous by thread: Re: Multiport midi sequencing
  • Next by thread: Problem with Logic Pro 8 and VSTGUI
  • Index(es):
    • Date
    • Thread