• 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: TimePitchAU error codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TimePitchAU error codes


  • Subject: Re: TimePitchAU error codes
  • From: Edward Agabeg <email@hidden>
  • Date: Mon, 09 Dec 2013 18:20:40 -0500

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


 _______________________________________________
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: 
 >Re: TimePitchAU error codes (From: Robert Carroll <email@hidden>)

  • Prev by Date: Logic offline bounce and automation with VST3 SDK's auwrapper
  • Next by Date: Re: Simulate HIView using NSView for AudioUnits?
  • Previous by thread: Re: TimePitchAU error codes
  • Next by thread: Using AVAudioSession with remote I/O audio unit to read and process microphone data
  • Index(es):
    • Date
    • Thread