RE : Core Audio beginner questions
RE : Core Audio beginner questions
- Subject: RE : Core Audio beginner questions
- From: David Scrève <email@hidden>
- Date: Sun, 22 Jun 2003 20:36:25 +0200
>
> * First of all, I would like to be able to play
>
severals buffered
>
> files at the same time. My code is responsible of filling
>
the buffer
>
> and
>
> reading from the files but all files have differents sounds format
>
> (number
>
> of channel, bytes per sample, sample rate). Should I have
>
to create one
>
> AudioUnit per file and could I have severals AudioUnit with same or
>
> different sound format ? And, am I forced to send floating point
>
> values to
>
> CoreAudio ?
>
>
You can create AudioConverters to convert the sound file
>
formats to the
>
canonical 32-bit float format used in CoreAudio.
Yes, but can I force the input format for one output AudioUnit
instead
of connection AudioConverters (I don't know how to connect AudioConverter to
AudioUnit) ?
>
I'd use a single output AU and manually mix the converted audio file
>
data.
But is it legal to create several AudioUnits ?
>
On the other hand, if you are using MTCoreAudio for instance, using
>
AudioDevices is just as easier (or easier) than AUs.
MTCoreAudio ? What's that ?
>
>
>
> * Can I change the size of the buffer I sent to
>
CoreAudio and know
>
> the current playback position in each buffer (I need to know, in
>
> addition, when a buffer begin to be played ) ?
>
>
>
>
Not sure exactly what you mean here..
I would like to be able to choose the size of the buffers from the
file I send to
CoreAudio, and being able to know what's the current sound position in the
sound buffer. For example,
if your buffer contains 4 seconds of sounds, I would like to know if the
current position is at 1 second (but with more
accuracy than 1 second) ?
Regards,
David
_______________________________________________
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.