timepitchAU
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
|
_______________________________________________
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