Disconnected AU causes crashes on AUGraphRun
Disconnected AU causes crashes on AUGraphRun
- Subject: Disconnected AU causes crashes on AUGraphRun
- From: Mark Coniglio <email@hidden>
- Date: Tue, 4 Apr 2006 13:09:38 -0400
This is a more focused repost of my earlier question.
In an AU Graph, leaving one audio unit disconnected (i.e., with no
Generator) causes a crash after calling AUGraphRun. One would think
that, leaving an AU without a source would cause it to produce no
output, and wouldn't be a problem. But instead it seems to crash as
soon as you start the graph.
If anyone has insights on allowing these dangling AUs to exist, I'd
be really glad to hear them. It's important in my app, because I'm
creating a kind of "front end" for the AUGraph, and the user might
forget to connect some input to an AU, temporarily have the AU input
disconnected as they try things out, etc.
If its impossible to have this, I'm going to have to go through the
connetions and track down any AU's that don't have input connections
and not include them in the graph.
You can try my sample code to cause the crash at
http://www.troikatronix.com/files/show-augraph-crash.sitx
Steps To Reproduce:
0) Create an AUGraph
1) Create Default Output Unit
2) Create Stereo Mixer Unit with Two inputs
3) Create two Low Pass Filter Units
4) Create on Sound File Player Unit and set output format to match
that of source file
5) Connect Stereo Mixer output to Default Output unit input
6) Connect both Low Pass Filter outputs to Stereo Mixer inputs 1 and 2
7) Connect Sound File Player to Low Pass Filter #1
8) Do not connect anything to Low Pass Filter #2
9) Start the graph running using AUGraphRun
10) Crash
Best Wishes,
Mark
--
=====================================================================
Mark Coniglio, Artistic Co-Director | email@hidden
Troika Ranch Dance Theater | http://www.troikaranch.org
=====================================================================
_______________________________________________
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