• 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
Audio Converter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Audio Converter


  • Subject: Audio Converter
  • From: Aran Mulholland <email@hidden>
  • Date: Sun, 2 Aug 2009 18:09:44 +1000

i have made a small test project which illustrates the problem i am having with an audio converter on the iphone

project is here : http://sites.google.com/site/iphonecoreaudiodevelopment/test/Converter.zip

the project works fine on the simulator but fails on the device. what i am trying to do is  :

non-interleaved Float (stereo, 2 buffers) -> Converter -> RemoteIO (pcm, Interleaved, stereo, 16 bit int ).

the fail point is when trying to set the input property on the converter

    // Describe format
    converterInputFormat.mSampleRate            = 44100.00;
    converterInputFormat.mFormatID                = kAudioFormatLinearPCM;
    converterInputFormat.mFormatFlags            = kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved;
    converterInputFormat.mFramesPerPacket        = 1;
    converterInputFormat.mChannelsPerFrame        = 2;
    converterInputFormat.mBitsPerChannel        = 32;
    converterInputFormat.mBytesPerFrame            = 4;
    converterInputFormat.mBytesPerPacket        = 4;

    //set the converterUnit input properties
    err = AudioUnitSetProperty(converterAudioUnit,
                               kAudioUnitProperty_StreamFormat,
                               kAudioUnitScope_Input,
                               0,
                               &converterInputFormat,
                               sizeof(converterInputFormat)); ------fail. error -10868

I am doing a few other things i am not sure about as well. like setting a callback on the converter, instead of just connecting it to another node.

thanks in advance..
aran

 _______________________________________________
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

  • Follow-Ups:
    • Re: Audio Converter
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: AudioConverterFillComplexBuffer failure
  • Next by Date: Re: 64bit processing possible?
  • Previous by thread: Re: AudioConverterFillComplexBuffer failure
  • Next by thread: Re: Audio Converter
  • Index(es):
    • Date
    • Thread