Re: Sound Data question
Re: Sound Data question
- Subject: Re: Sound Data question
- From: William Stewart <email@hidden>
- Date: Mon, 15 May 2006 12:13:51 -0700
On 15/05/2006, at 10:13 AM, Mark Thomas wrote:
Hi,
I'm finally making the migration over the CoreAudio, but have some
questions.
1) Looking at the samples it seems like most of the data which core
audio
want is in float datatype.
yes
2) Looking at the Audio HAL sample, it shows device break down on
what your
sound hardware can do. I can see that my sound hardware can take
16bit sound
data.
yes
3) Continuing on this though can you provide your sound data in the
format
which best matches your sound hardware, as this limits the amount of
conversions required.
sometimes. This is called "Native Mode" in the HAL (See the headers
in the CoreAudio.framework).
4) If you must work in floats
Its really not that bad.
is there going to be much over head converting
my sound data to floats and then CoreAudio converting back to a
hardware
compatible format.
You should use the AudioConverter to do this conversion for you - we
have highly optimised blitters for doing this work.
5) Does any of this depend on hardware and a minimum MacOS-X
version to work
smoothly.
You haven't really described what you are doing, so that's impossible
to answer. The recent headers in Tiger all have macros associated
with the API calls that tell you when they first appear
Bill
6) What gotcha's should I look out for, as I need my code to track
where in
the sound buffer my playback is, as my buffers get fed into while
sound is
being pulled out else where in the buffer.
Thanks in advance
Mark.
_______________________________________________
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
--
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
________________________________________________________________________
__
_______________________________________________
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