• 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: Invalid input size problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid input size problem


  • Subject: Re: Invalid input size problem
  • From: john <email@hidden>
  • Date: Mon, 19 Apr 2004 19:04:43 -0400

Hi Mike,

If this helps at all, here's a log output of what's going on with the sizes *before* AudioConverterConvertBuffer() is called. The AudioConverter is setup to convert from 16bit 44.1 2 channel signed int to 32bit 44.1 2 channel float. When the converter is reset (as below), the output sample rate is changed to 38khz (though it happens with any rate.

renderOutput - 4096 8192 (buffer input size, mDataByteSize)
renderOutput - 4096 8192
resetConverter
renderOutput - 4096 8192 (the call following this errors invalid input size)
renderOutput - 0 0

-- John


Hi Mike,

I'm using AudioConverterConvertBuffer(), so I don't have the ioNumberDataPackets parameter.

-- John

in your AudioConverterComplexInputDataProc, do the values for *ioNumberDataPackets and ioData->mBuffers[N].mDataByteSize match up? if the sample rate changes, then the AudioConverter may be asking for a different number of frames (via *ioNumberDataPackets). if you don't set mDataByteSize to match up for the number of frames you're telling the AC via *ioNumberDataPackets, i bet you'll get kAudioConverterErr_InvalidInputSize.

-mike
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: MT question (From: john <email@hidden>)
 >Re: MT question (From: Michael Thornburgh <email@hidden>)
 >Re: MT question (From: john <email@hidden>)

  • Prev by Date: Re: MT question
  • Next by Date: Oops: Invalid input size problem ;-)
  • Previous by thread: Re: MT question
  • Next by thread: Oops: Invalid input size problem ;-)
  • Index(es):
    • Date
    • Thread