• 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: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer


  • Subject: Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer
  • From: Aran Mulholland <email@hidden>
  • Date: Thu, 28 May 2009 20:26:18 +1000

cool thanks doug i added the lines

    //get the audio unit
    err = AUGraphNodeInfo(graph, mixerNode, &mixerDescription, &mixer);
   
    // Describe format
    audioFormat.mSampleRate            = 44100.00;
    audioFormat.mFormatID            = kAudioFormatLinearPCM;
    audioFormat.mFormatFlags        = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;
    audioFormat.mFramesPerPacket    = 1;
    audioFormat.mChannelsPerFrame    = 2;
    audioFormat.mBitsPerChannel        = 16;
    audioFormat.mBytesPerPacket        = 4;
    audioFormat.mBytesPerFrame        = 4;
   
    //Apply format
    err = AudioUnitSetProperty(mixer,
                               kAudioUnitProperty_StreamFormat,
                               kAudioUnitScope_Input,
                               0,
                               &audioFormat,
                               sizeof(audioFormat));


and now my callback is asking for the correct format.
it still would be nice if i could find some explanatory documentation on the different properties you can set and how you go about setting them. im feeling my way in the dark, getting to the destination but if anyone knows of any good learning resources i would be happy hear from them.
 _______________________________________________
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: 
 >Multi channel mixer - kAudioUnitSubType_MultiChannelMixer (From: Aran Mulholland <email@hidden>)
 >Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer (From: tahome izwah <email@hidden>)
 >Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer (From: Aran Mulholland <email@hidden>)
 >Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: shipping an aggregate device
  • Next by Date: Convenience method, function for converting 4CCs to strings
  • Previous by thread: Re: Multi channel mixer - kAudioUnitSubType_MultiChannelMixer
  • Next by thread: AUGraphStart() Failed to start playing audio with error code -66681
  • Index(es):
    • Date
    • Thread