RE: Playing 2 or more audio data simultaneously
RE: Playing 2 or more audio data simultaneously
- Subject: RE: Playing 2 or more audio data simultaneously
- From: "Robert Goulet" <email@hidden>
- Date: Wed, 18 Sep 2002 15:38:24 -0400
- Thread-topic: Playing 2 or more audio data simultaneously
Isn't any way to do it without using Audio Units? On that web page:
http://developer.apple.com/audio/xaudiooverview.html
...they say that CoreAudio supports multiple channel. Doesn't it means that it can play those channels at the same time? Does the term channel mean audio data stream? In the IOProc of CoreAudio, we receive a AudioBufferList where we can copy the data into, so it get played on the sound card. How are we suppose to control those AudioBuffers ? Can we add as much as we want? If yes, will they play simultaneously in the case I fill them all in the IOProc?
If I can do it without using AudioUnits, it would be a lot easier since AudioUnits seems to be used by high level implementations. I want to stay low level so I can control every detail of the process. I really need help.
-----Original Message-----
From: Baron [
mailto:email@hidden]
Sent: Wednesday, September 18, 2002 12:53 PM
To: Patrick Beard
Cc: CoreAudio mailing list (E-mail)
Subject: Re: Playing 2 or more audio data simultaneously
You can use AudioUnits and set up an AUGraph. Connect a mixer AU to the
default output unit and your good to go to mix as many busses (mixer inputs)
as you like. By outputting the mixer AU to the default output unit, your
sound will be directed to the same output hardware that would be used by the
Sound Manager. There is example code in the CoreAudio SDK
(
http://developer.apple.com/audio/) or at
/Developer/Examples/CoreAudio/Services/ if you have the developer package
installed.
Bob Aron
--
CoreAudio Team
Apple Computer Inc.
>
On Wednesday, September 18, 2002, at 08:28 AM, Robert Goulet wrote:
>
> Hello! I'm currently developping audio stuff for our product, and I
>
> was wondering if it would be better if I use SoundManager or CoreAudio
>
> for an application that needs to mix sound (i.e. play 2 or more .wav
>
> file simultaneously) with very low latency. I personality think that
>
> CoreAudio is the way to go, but I didn't found how to play 2 or more
>
> .wav file simultaneously without doing the sound mixing myself....
>
>
>
> It is possible to mix sound with core audio? I'm currently able to
>
> play a single audio file because I don't understand how am I suppose
>
> to have more than one buffer in my output audio buffer list that I
>
> receive in my AudioIOProc. Am I completely wrong?
>
>
Is it impractical to use more than 1 IOProc? I would assume that if
>
multiple applications use Core Audio and each has its own IOProc, that
>
mixing would occur. Why not in the same application?
>
>
- Patrick
>
_______________________________________________
>
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.
_______________________________________________
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.
_______________________________________________
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.