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

Oops: Invalid input size problem ;-)


  • Subject: Oops: Invalid input size problem ;-)
  • From: john <email@hidden>
  • Date: Mon, 19 Apr 2004 19:14:03 -0400

Hey Mike,

I manually set the mDataByteSize to double the buffer input size and got an error -50. Looking through the list for what this was, I ran across someone mentioning that you can't use AudioConverterConvertBuffer() for sample rate changes.

Sorry about that.

-- John


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
_______________________________________________
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>)
 >Re: Invalid input size problem (From: john <email@hidden>)

  • Prev by Date: Re: Invalid input size problem
  • Next by Date: MIDI Rescan: Panther vs. Jaguar
  • Previous by thread: Re: Invalid input size problem
  • Next by thread: Accessing an Audio stream ???
  • Index(es):
    • Date
    • Thread