Robert Carroll <email@hidden> on December 8, 2013 at 6:13 AM -0800 wrote:
I thought I had gone through all the headers, but I missed these.
Somes aspects of the TimePitchAU's behaviour still seem quirky at best. I have two working AUgraph test applications both using fileplayer -- timepitch -- mixer -- output. One is using an aiff file, the other some Apple Lossless files. Both return the -10868 error when setting the output stream format on the TimePitchAU but the pitch shift still functions. If I skip that call, the AUGraph passes audio, but the pitch shift does not occur.
You didn't mentioned what format(s) you're setting, but using 32-bit little-endian float deinterleaved should work and this should be the default format returned by the AUTimePitch. Use GetProperty and check. I can't remember off the top but this AU may require the in/out formats to be the same and require deinterleaved. Again, easy to check with a few lines of code and a couple of CAStreamBasicDescriptions.
The sample project sets: AudioStreamBasicDescription: 2 ch, 11000 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved out of an AUConverter and in/out of the AUTimePitch and that works fine (sample rate could be something else of course).
The "format not supported" error is telling you exactly what's wrong.
edward
|