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

AudioConverter API clarification


  • Subject: AudioConverter API clarification
  • From: "Phil Burk" <email@hidden>
  • Date: Mon, 14 Oct 2002 12:08:00 -0700

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.

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?

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.

  • Follow-Ups:
    • Re: AudioConverter API clarification
      • From: Bill Stewart <email@hidden>
References: 
 >Re: best way to get rate conversion (From: Bill Stewart <email@hidden>)

  • Prev by Date: Re: AudioUnit : how to communicate from DSP to GUI ?
  • Next by Date: Re: AudioUnits - MIDI I/O?
  • Previous by thread: Re: best way to get rate conversion
  • Next by thread: Re: AudioConverter API clarification
  • Index(es):
    • Date
    • Thread