• 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
AUConverter format flags non-interleaved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AUConverter format flags non-interleaved


  • Subject: AUConverter format flags non-interleaved
  • From: Benjamin Rindt <email@hidden>
  • Date: Thu, 11 Jul 2013 16:52:10 +0200

Hey guys,

I have an Inputdevice which is giving me interleaved audio channels. But I need them to be non-interleaved. I read that the AUConverter can convert interleaved->non interleaved but I don't know how to set the stream format to get it working. The player->stream format is interleaved (with 4 channels) but I need it to be non-interleaved 4 channels.

Well I thought, take the player->stream format and set it somehow to non-interleaved then I don't have to worry to loose some other values of the stream format.

My Code is this:

    AudioComponentDescription auconverterDesc = {0};
    auconverterDesc.componentType = kAudioUnitType_FormatConverter;
    auconverterDesc.componentSubType = kAudioUnitSubType_AUConverter;
    auconverterDesc.componentManufacturer = kAudioUnitManufacturer_Apple;

    

    AudioUnit auconverter;

    

    AudioStreamBasicDescription convertAsbd;
    convertAsbd = player->streamFormat;

    

        //make some magic to get it non interleaved??
    convertDesc.mFormatFlags = ???;

    

    CheckError(AudioUnitSetProperty(auconverter, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0, &convertAsbd, sizeof(AudioStreamBasicDescription))
               , "streamformat inputmixer output ");
    CheckError(AudioUnitSetProperty(auconverter, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &player->streamFormat, sizeof(AudioStreamBasicDescription))
               , "streamformat inputmixer output ");

I cut out the AUgraph node stuff, doesn't matter here.

Thanks in advance!
Benjamin
 _______________________________________________
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: Is it possible to programmatically change the shape of an LFO in an AUSampler?
  • Next by Date: When do you ever call AudioSessionSetActive(false)?
  • Previous by thread: Is it possible to programmatically change the shape of an LFO in an AUSampler?
  • Next by thread: When do you ever call AudioSessionSetActive(false)?
  • Index(es):
    • Date
    • Thread