• 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 API clarification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioConverter API clarification


  • Subject: Re: AudioConverter API clarification
  • From: Bill Stewart <email@hidden>
  • Date: Mon, 14 Oct 2002 12:36:29 -0700

on 14/10/02 12:08 PM, Phil Burk wrote:

> Hello,
>
> I have some API questions that I could not find answers to in the docs:
>
> 1) When I pass an AudioStreamBasicDescription pointer to
> AudioConverterNew(), can I discard the AudioStreamBasicDescription after the
> call? Are the values copied someplace safe? I'm assuming yes.

Yes

> 2) The AudioConverter callback has a UInt32 *ioDataSize parameter. The
> header files says it contains on input the "minimum amount of data the
> converter would like". In my test, that ranged from 8 to 1392 bytes. But I
> always gave it 512 bytes because that was my buffer size. I did not get any
> glitches. When I pass less than it asks for, will the converter survive and
> just call me again right away for more data? Or am I tempting fate and going
> to have problems down the road if I don't give it all the data it requests?
> Also is there a limit to how much data I can give it?

No - it should ask you again for data.

No limit - In the Java DefaultOutput code I'm giving the converter a block
of around 5MB (call me lazy:) and then it churns through that and asks again
when its done...

Bill

> Thanks,
> Phil Burk
> _______________________________________________
> 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.

--
mailto:email@hidden
tel: +1 408 974 4056

__________________________________________________________________________
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
__________________________________________________________________________
_______________________________________________
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: 
 >AudioConverter API clarification (From: "Phil Burk" <email@hidden>)

  • Prev by Date: Re: AU : carbon view how to ?
  • Next by Date: Re: Persisting an AUGraph
  • Previous by thread: AudioConverter API clarification
  • Next by thread: FX type flags?
  • Index(es):
    • Date
    • Thread