• 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
error when setting AUTimePitch stream format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error when setting AUTimePitch stream format


  • Subject: error when setting AUTimePitch stream format
  • From: John Clayton <email@hidden>
  • Date: Mon, 29 Sep 2008 09:22:46 +0200

Hi All,

When changing the stream format of the input scope of an AUTimePitch, I get an -10865 (kAudioUnitErr_PropertyNotWritable) sometimes. When I set the format to the following it works:
AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm' (0x00000029) 32- bit little-endian float, deinterleaved


but when I do it with this format, it fails:
AudioStreamBasicDescription: 1 ch, 16000 Hz, 'lpcm' (0x00000029) 32- bit little-endian float, deinterleaved
error -10865: set pitch unit output stream format failed


The core-audio data flow is as follows:
quicktime movie file -> movie extraction API -> AUTimePitch -> AUHALOutput (speakers)


I'm getting the ASBD from the movie extraction API, and simply setting it at the input and output scope of the AUTimePitch audio unit, plus the Input scope of the AUHALOutput audio unit.

Looking at the format/channel differences, the only things I can see that are different are the number of channels and the sample rate.

Is the AUTimePitch even capable of processing single-channel data? (I can't imagine a reason why not, but its worth asking because I'm obviously doing something wrong).

Thanks
--
John Clayton




_______________________________________________ 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: error when setting AUTimePitch stream format [SOLVED]
      • From: John Clayton <email@hidden>
  • Prev by Date: Settng and restarting an audio queue
  • Next by Date: Re: AudioHardwareGetPropertyInfo and Core Audio Java
  • Previous by thread: Re: Settng and restarting an audio queue
  • Next by thread: Re: error when setting AUTimePitch stream format [SOLVED]
  • Index(es):
    • Date
    • Thread