Re: Using AudioConverter
Re: Using AudioConverter
- Subject: Re: Using AudioConverter
- From: Patrick Machielse <email@hidden>
- Date: Mon, 18 Oct 2004 20:03:04 +0200
op 18-10-2004 19:06 schreef Doug Wyatt
> On Oct 18, 2004, at 5:04, Patrick Machielse wrote:
>
>> The function isn't by chance deprecated, as are
>> AudioConverterFillBuffer()
>> c.s.?
>
> No, it's not deprecated. AudioConverterFillBuffer isn't either -- we'll
> just warn you that AudioConverterConvertBuffer is limited to cases
> where you know exactly how much input to provide to produce the desired
> amount of output, which normally means no non-CBR formats or sample
> rate conversion.
Hmm, the documentation doesn't agree with you. From the Audio Toolbox
documentation:
> AudioConverterFillBuffer
>
> Fills the provided buffer with converted data.
>
> extern OSStatus AudioConverterFillBuffer(
> AudioConverterRef inAudioConverter,
> AudioConverterInputDataProc inInputDataProc,
> void* inInputDataProcUserData,
> UInt32* ioOutputDataSize,
> void* outOutputData
> );
>
> Discussion
>
> Deprecated. Uses the provided inInputDataProc callback to acquire data,
> converts it, and places the converted data in. outOutputData. Deprecated since
> it can only work with a single buffer. Use AudioConverterFillComplexBuffer()
> instead.
To me this reads: "don't touch this". If these functions are not in fact
deprecated an amendment to the docs seems to be in order here too. If you
can outline which functions in AudioToolkit (if any) are deprecated I'll be
happy to file another bug against it.
I must say that I'm having a pretty hard time trying to get to grips with
the CoreAudio. The documention is quite sparse, and requires familiarity
with both Carbon style programming and develeoping audio applications. On
top of that there are obvious omissions and errors, like the ones discussed
above.
However, the alternatives are worse it seems (QT documentation seems to
prefer Pascal code samples and NSSound is really limited).
Anyway, with the help of this list I will hopefully find out what I want to
know. (even though it is now impossible to search the archives :-( )
Patrick
---
Hieper Software
e: email@hidden
w: http://www.hieper.nl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden