Re: using integer audio data
Re: using integer audio data
- Subject: Re: using integer audio data
- From: Matthew Xavier Mora <email@hidden>
- Date: Tue, 21 Aug 2001 15:30:40 -0700
[ > I'd like to use CoreAudio to feed 16-bit signed lpcm data to the
[ > hardware.
[
[ You can't using the HAL API. It only allows for 32 bit float data
[ when doing IO with linear PCM sample formats. You don't have any
[ choice but to convert.
For the record, is there a higher level of CoreAudio API which supports more
formats and handles conversions for the programmer?
I seem to remember something more flexible, even if it isn't the
closest layer
to "the iron." The HAL API is great, but it is not the only part of
CoreAudio, right?
I'm basically asking so that we'll have a good answer in the mailing list
archives; for those folks who don't want to roll their own 16-bit
int to 32-bit
float sample rate converters, but still want as fast an implementation as is
possible.
Use the default audio unit. It will do this conversion and isolate
you from changes in the hardware. It even has SRC.
Matt