• 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: AudioQueueNewOutput -50 paramErr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueueNewOutput -50 paramErr


  • Subject: Re: AudioQueueNewOutput -50 paramErr
  • From: Doug Wyatt <email@hidden>
  • Date: Tue, 27 Jan 2009 08:42:39 -0800

Look for examples of how to correctly specify linear PCM formats... There are plenty but this isn't one.
Doug

typing on touchscreen
thus terse and prone to typos
all thumbs! well, just two

On Jan 27, 2009, at 6:48, Dennis Christopher <email@hidden> wrote:

Hi,

I'm trying to pass an lpcm stream into the AudioQueue machinery for playback. However I cant seem to get a parameter that AudioQueueNewOutput likes--it keeps returning -50. I've read the AudioQueue Programming guide. The problem seems to be with the AudioStreamBasicDescription parameter. I am inspecting the stream and setting its values by hand, e.g.--

mSampleRate = 11025
mFormatID = 'lpcm'
mFormatFlags = kLinearPCMFormatFlagIsBigEndian | kLinearPCMFormatFlagIsSignedInteger | kLinearPCMFormatFlagIsPacked
mBytesPerPacket = 5120 mFramesPerPacket = 2560 mBytesPerFrame = 2 mChannelsPerFrame = 1 mBitsPerChannel = 16 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: 
 >AudioQueueNewOutput -50 paramErr (From: Dennis Christopher <email@hidden>)

  • Prev by Date: Re: AudioQueueNewOutput -50 paramErr
  • Next by Date: AudioConverter gives non normalized samples?!
  • Previous by thread: Re: AudioQueueNewOutput -50 paramErr
  • Next by thread: AudioConverter gives non normalized samples?!
  • Index(es):
    • Date
    • Thread