• 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: Applying a low-pass cutoff inside an AU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applying a low-pass cutoff inside an AU


  • Subject: Re: Applying a low-pass cutoff inside an AU
  • From: Aran Mulholland <email@hidden>
  • Date: Fri, 9 Oct 2009 09:28:24 +1100


yeah, this happens a bit, what is most likely happening is that you are applying a 16 bit effect to a 32 bit sample.

what I would do first is check the format you are receiving from the outputs of your graph, what bit size are they, and are they matching the inputs.
you can do this like so, the below code will get an output from a unit called crossFaderMixerUnit and print a description, then you can (manually) compare it to the inputs, and see its bit size.. what i have started doing is setting the inputs to be the outputs of the node previous in the graph.

    AudioUnitGetProperty(
crossFaderMixerUnit,
                         kAudioUnitProperty_StreamFormat,
                         kAudioUnitScope_Output,
                         0, //  bus
                         &inputHardwareASBD,
                         &asbdSize);
    NSLog (@"got crossFaderMixerUnit bus 0 output ASBD. rate: %f, %d channels, %d bits per channel",
           inputHardwareASBD.mSampleRate, inputHardwareASBD.mChannelsPerFrame,
           inputHardwareASBD.mBitsPerChannel);
       
    AudioUnitGetProperty(remoteIOUnit,
                         kAudioUnitProperty_StreamFormat,
                         kAudioUnitScope_Input,
                         0, // bus
                         &inputHardwareASBD,
                         &asbdSize);
    NSLog (@"got RIO bus 0 input ASBD. rate: %f, %d channels, %d bits per channel",
           inputHardwareASBD.mSampleRate, inputHardwareASBD.mChannelsPerFrame,
           inputHardwareASBD.mBitsPerChannel);

cheers

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: Re: Applying a low-pass cutoff inside an AU
      • From: email@hidden
References: 
 >Re: Applying a low-pass cutoff inside an AU (From: Mÿffffe9cheneau Guillaume <email@hidden>)

  • Prev by Date: Unable to open certain file formats using AudioFileOpenWithCallbacks, kAudioFilePermissionsError returned
  • Next by Date: Re: Re: Applying a low-pass cutoff inside an AU
  • Previous by thread: Re: Applying a low-pass cutoff inside an AU
  • Next by thread: Re: Re: Applying a low-pass cutoff inside an AU
  • Index(es):
    • Date
    • Thread