RE: Subsampling with AudioConverter?
RE: Subsampling with AudioConverter?
- Subject: RE: Subsampling with AudioConverter?
- From: "Tim Dorcey" <email@hidden>
- Date: Fri, 12 Dec 2003 16:24:34 -0800
If you are using AudioConverterConvertBuffer, then you need to pre-compute
how much output data your input buffer will produce, and pass that as the
destination buffer size. This was counter-intuitive to me, but I guess
makes sense from playout point of view. It's saying you don't have enough
input data to produce the amount of output data you "requested." There is a
simple call (I can't recall) that will do this computation for you.
Tim
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of
>
Hugues Pisapia
>
Sent: Friday, December 12, 2003 3:49 PM
>
To: email@hidden
>
Subject: Subsampling with AudioConverter?
>
>
>
Hi there,
>
>
I am trying to perform subsampling with AudioConverters and
>
it seem I am
>
not able to do that.
>
I am constantly getting "InvalidInputSize"...
>
>
Am I doing something wrong and if so, where could I find
>
data/examples?
>
>
Thanks,
>
Hugues
>
_______________________________________________
>
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.
_______________________________________________
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.