Re: problem w/ Matrix Mixer
Re: problem w/ Matrix Mixer
- Subject: Re: problem w/ Matrix Mixer
- From: Robert Grant <email@hidden>
- Date: Tue, 16 Dec 2003 16:33:46 -0500
Hi James,
I understand what you're saying but it seems harsh that the mixer does
not allow an Enabled input with a dangling subgraph (not connected to a
MusicDevice) that return NoConnection. It sounds like one needs to
disconnect the subgraph and then disconnect the input? Why not just
catch the "NoConnection" and automatically mark the input as disabled?
But that doesn't explain why James Coker's mixer stops producing output
when his directly connected MusicDevice is disconnected from one of the
inputs?
Thanks,
Robert.
On Dec 16, 2003, at 2:55 PM, James McCartney wrote:
The MatrixMixer always calls HasInput() before calling PullInput(), so
it should never generate a kAudioUnitErr_NoConnection itself.
So it is your upstream AudioUnit that is generating this error when
the MatrixMixer calls PullInput on it.
On Dec 16, 2003, at 7:04 AM, Robert Grant wrote:
So I take a look inside AUInputElement::PullInput(...) and I find:
if (mInputType == kNoInput || mCritical)
return kAudioUnitErr_NoConnection;
Now mInputType got set to kNoInput when I disconnected the input. But
why is this worthy of yelling and screaming and causing the
MatrixMixer to stop rendering output? Why can't it just clear out the
buffers and return empty?
You need to provide some input source for it. Like connecting to a
dummy render proc as you discovered.
-
james mccartney
apple coreaudio
_______________________________________________
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.