Re: Canonical format max amp limits?
Re: Canonical format max amp limits?
- Subject: Re: Canonical format max amp limits?
- From: Stephen Checkoway <email@hidden>
- Date: Thu, 15 Jul 2004 11:52:28 -0700 (PDT)
On Thu, 15 Jul 2004, Stephen Davis wrote:
>
The default audio unit will let you hand it whatever you want so you
>
can give it 16-bit ints if you like. You did mention that you are
That would be ideal. All my code really needs to be able to do, is to play
linear PCM data and get milisecond timing information. (I.e. know exactly
how long it has been outputing data. Well, not exactly, milisecond is good
enough.) Is there some easy way to do this?
>
doing some trivial DSP -- is it all integer? If so, then you don't
>
need to convert to float at all. Most DSP algorithms are easier to
>
code in float though so it's typical to convert to float to do your
>
processing, which is how I thought this thread started...
When I said trivial, I meant trivial. Far less than anything you might be
thinking of. All I am doing is mixing multiple sounds. And that code is
already written and is used for all sound output where there is no
hardware mix buffer. As for how the thread got started, you're right. I
should have written my own post.
>
There are some tricks you can pull to do the conversion entirely in the
>
integer unit but the compilers don't schedule that too well either.
>
It's still better than the generic "aFloat = (float) anInt" operation
>
though. The CoreAudio converters do these tricks. In short, use the
>
CoreAudio converters. :-)
Unless there is a simpler way to just pass along the 16 bit ints, this is
exactly what I will do now.
- Steve
_______________________________________________
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.