Re: [Java API] Downsampling with AudioConverters ?
Re: [Java API] Downsampling with AudioConverters ?
- Subject: Re: [Java API] Downsampling with AudioConverters ?
- From: Bill Stewart <email@hidden>
- Date: Mon, 15 Sep 2003 12:52:14 -0700
You can certainly use an AUConverter unit to do sample rate conversion
for you, but you *should* make sure that you set its format on input to
the format you are giving it - it will get the format from a
connection, but if you are supplying data to a converter unit from a
render callback, then you have to set the format on the input so it
knows what you are giving it (This is true whenever you use a render
callback, its the client's responsibility to set the format
appropriately)
Bill
On Monday, September 15, 2003, at 06:27 AM, Ev wrote:
I *think * what you'll want to do it run the audio input through a
formatter unit via an AUGraph. Don't change the input parameters of
the formatter, the input device will force it to be what it is. Just
change the parameters of the formatter's output to the sampling rate
you need and it should be OK -after that, then do the float to integer
conversion.
-ev
On Monday, September 15, 2003, at 02:34 AM, Hugues Pisapia wrote:
Hi,
I'm sorry I wasn't clear enough: behind the float->int conversion,
I'd like to perform downsampling as well 44KhZ->32, 22, 11, 8 kHz...
I wanted to have the conversion first at the same sampling rate, and
then try to modify that... It appear I'll have no luck :-/ even
though upsampling and int->float conversion works well since I can
play back without difficulties.
thanks,
- Hugues
PS: Sorry about the double posting...
_______________________________________________
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.