• 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: AudioConverter buffer size and other questions Re: Convert to float and more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioConverter buffer size and other questions Re: Convert to float and more


  • Subject: Re: AudioConverter buffer size and other questions Re: Convert to float and more
  • From: Roy Lovejoy <email@hidden>
  • Date: Fri, 11 Jul 2003 10:41:25 -0700

Okay.. Apparently I'm in the same boat..

In my IOProc, I call:

AudioConverterGetProperty(kAudioConverterPropertyCalculateInputBufferSiz e), passing in the AudioBuffer.mDataByteSize

I get out the input buffer size..
I grab that much data, pass it to AudioConverterConvertBuffer(),
Alls well.

until the last packet, when the input buffer size is less,
I'd thought I'd be "Mr. Clever Dan", by letting AudioConverter figure the reverse out-

I call AudioConverterGetProperty(kAudioConverterPropertyCalculateOutputBufferSi ze), passing in the smaller-than-normal input buffer size, and getting the smaller-than-normal output size.

but with _SOME_INSTANCES_ I still get 'insz' for AudioConverterConvertBuffer(),
(not all)

I would have thought that if you ask AC what buffer sizes IT expects, you'd NEVER get an error with AudioConverterConvertBuffer(), after all, it told you what it wants..

Right???
_______________________________________________
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.

  • Prev by Date: Another DLSMusicDevice AU Question
  • Next by Date: "full duplex" issue
  • Previous by thread: Another DLSMusicDevice AU Question
  • Next by thread: "full duplex" issue
  • Index(es):
    • Date
    • Thread