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

timepitchAU


  • Subject: timepitchAU
  • From: Robert Carroll <email@hidden>
  • Date: Sun, 01 Dec 2013 15:47:29 -0500

I am still having some issues with the TimePitchAU.

My audiograph is playing and the TimePitch unit does change the pitch, which is what I need it for. However, attempting to set the output stream format returns an error ("null") with the following code:

    OSStatus result = noErr;
    
    NSLog (@"setting TimePitch output stream format to:");
    [self printASBD:inputFormat];
    
    UInt32 propSize = sizeof(inputFormat);
//            // Obtain the timePitch unit instance from its corresponding node.
            result =    AUGraphNodeInfo (
                                         processingGraph,
                                         timePitchNode,
                                         NULL,
                                         &timePitchUnit
                                         );
            
            if (noErr != result) {[self printErrorMessage: @"AUGraphNodeInfo" withStatus: result]; return;}
            
            //set the output stream format of the timepitch unit
            result =    AudioUnitSetProperty(
                                             timePitchUnit, 
                                             kAudioUnitProperty_StreamFormat, 
                                             kAudioUnitScope_Output, 
                                             0, 
                                             &inputFormat, 
                                             //sizeof(inputFormat)
                                             propSize
                                             );
            
            
            if (noErr != result) {[self printErrorMessage: @"timePitchUnit AudioUnitSetProperty[kAudioUnitProperty_StreamFormat] failed" withStatus: result]; return;}

The inputFormat is an AudioStreamBasicDescription.

The graph structure is fileplayer -- timepitchAU -- mixer -- defaultoutput
If I omit the call to set the timepitch streamformat, the graph plays the audiofile, but no pitch shift results.

Any suggestions or insight would be greatly appreciated.

thanks,

rob

Robert Carroll
RSM Records
Toronto
http://www.rsmrecords.com



 _______________________________________________
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: AudioServerPlugin : ASBD for clients (?)
  • Next by Date: Re: mHostTime vs mSampleTime
  • Previous by thread: Re: AudioServerPlugin : ASBD for clients (?)
  • Next by thread: Re: mHostTime vs mSampleTime
  • Index(es):
    • Date
    • Thread