Re: Multiple outputs for the same source
Re: Multiple outputs for the same source
- Subject: Re: Multiple outputs for the same source
- From: Felipe Baytelman <email@hidden>
- Date: Wed, 25 May 2005 15:59:36 -0400
- Resent-date: Wed, 25 May 2005 19:48:35 -0400
- Resent-from: Felipe Baytelman <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Core Audio Mailing List <email@hidden>
On 25-05-2005, at 15:29, William Stewart wrote:
Ah - I see the confusion.
By definition, a graph can only have one output unit - that is the
graph's head. In the case you describe above, this is a device
output unit, which automatically runs with the I/O Proc of the
device it is attached to. So, you can't really get below that.
You can certainly add the splitter into the graph, but it would
have to be above the output unit in the signal chain....
So, lets back up a bit - what are you trying to achieve?
Do you want the audio you are generating to go out to the device
(ie. to play it) and you also want to do something else with it
(say write it to a file)? Or, do you want to just do some more
extensive processing on the audio before you play it. Neither of
these options are mutually exclusive.
I'm doing a DJ program, so I want the same audio to be played in two
different outputs: amplifier and headphones. But this is only ONE of
the multiple "decks" (each of one has exactly the same audiochain),
so I would love to mix all this different decks-amplifier-track into
a matrixmixer and THEN send it to the sound output (connected to the
amplifier) AND (why not?) save it to a file.
I don't plan to apply more effect/converter AU's AFTER the splitter
(I can simplify the problem applying them before), but I DO WANT TO
CONTROL THE VOLUME, which can be controlled directly on the output
audiounit.
To get some idea of how you can do this, have a look at the AU Lab
application. Add a couple of effects, audio input (or instrument or
generator sources)... As you do this, in the debug menu do a Print
Session - you'll get a whole lot of state dumped to the console
output - that should help you figure out something about what you
need to do. You can also record a file of the audio as it is being
played out - that is done by syphoning off the audio from the
Graph's Post-Render callback, and using the ExtendedAudioFile API
to write the file to disk in another thread...
I have played a whole day with AU Lab, until I find out I cannot
connect different outputs :(
HTH
Bill
So, what do you recommend me to do?
Felipe Baytelman
Baytex Software
email@hidden http://www.baytex.net (+56 8) 249 62 41
_______________________________________________
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