• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem w/ Matrix Mixer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem w/ Matrix Mixer


  • Subject: Re: problem w/ Matrix Mixer
  • From: Robert Grant <email@hidden>
  • Date: Tue, 16 Dec 2003 06:52:59 -0500

Hi James,

The only other time I got nothing coming out of the mixer was when I had a broken connection. Are you checking the LastRender error status?

Here's a suitable callback in case you're not:

void MyAudioUnitPropertyListenerProc(void *inRefCon, AudioUnit ci, AudioUnitPropertyID inID, AudioUnitScope inScope, AudioUnitElement inElement)
{
OSStatus status;
static OSStatus lasterror = noErr;
UInt32 size = sizeof(lasterror);
OSStatus result = ::AudioUnitGetProperty(ci, inID, inScope, inElement, &lasterror, &size);
if ((status == noErr) && (lasterror != noErr)) {
fprintf(stderr, "unit %p reported error %ld\n", ci, lasterror);
}
}

// Add the following to your graph construction code:
AudioUnitAddPropertyListener(outputUnit, kAudioUnitProperty_LastRenderError, &MyAudioUnitPropertyListenerProc, NULL);

Hope that helps,

Robert,

On Dec 16, 2003, at 12:53 AM, James Coker wrote:

I have a simple AU graph that looks like this:

A Matrix mixer w/ 64 stereo input busses, all disabled
but the first two. There is one stereo output buss, connected
to the default output AU.

A stereo synth is connected to the first matrix bus input.
A second stereo synth is connected to the second.

So there are 4 connections in the graph, and everything
sounds fine -- I can hear output from both synths.

if I disable the 2nd MatrixMixer input bus, then disconnect
the 2nd stereo synth, all output stops. Reconnecting and
enabling the 2nd synth restores audio output from both
synths.

I know there is an issue w/ the enable flag on MatrixMixer
inputs, but is there some other trick regarding connections
that I missed?

Thanks,
Jim
_______________________________________________
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.

  • Follow-Ups:
    • Re: problem w/ Matrix Mixer
      • From: Robert Grant <email@hidden>
References: 
 >problem w/ Matrix Mixer (From: James Coker <email@hidden>)

  • Prev by Date: problem w/ Matrix Mixer
  • Next by Date: QT 6.4, CoreAudio and USB devices
  • Previous by thread: problem w/ Matrix Mixer
  • Next by thread: Re: problem w/ Matrix Mixer
  • Index(es):
    • Date
    • Thread