• 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: Multiple Connections to an Output Node
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Connections to an Output Node


  • Subject: Re: Multiple Connections to an Output Node
  • From: Craig Bakalian <email@hidden>
  • Date: Thu, 6 Nov 2003 16:24:15 -0500

Hi,
Well, I updated the code after some research, yet, it ain't working.

-(void)createOutputNodeForTracks
{
ComponentDescription mixer;
mixer.componentFlags = 0;
mixer.componentFlagsMask = 0;
mixer.componentType = kAudioUnitType_Mixer;
mixer.componentSubType = kAudioUnitSubType_StereoMixer;
mixer.componentManufacturer = kAudioUnitManufacturer_Apple;
AUNode mixerNode;
AUGraphNewNode(mainGraph, &mixer, 0, NULL, &mixerNode);

ComponentDescription outUnit;
outUnit.componentFlags = 0;
outUnit.componentFlagsMask = 0;
outUnit.componentType = kAudioUnitType_Output;
outUnit.componentSubType = kAudioUnitSubType_DefaultOutput;
outUnit.componentManufacturer = kAudioUnitManufacturer_Apple;
AUNode outPutNode;
AUGraphNewNode(mainGraph, &outUnit, 0, NULL, &outPutNode);

AUGraphConnectNodeInput(mainGraph, mixerNode, 0, outPutNode, 0);
AUGraphInitialize(mainGraph);
}

-(void)createSynthUnitForTrack: (MusicTrack)track
{
ComponentDescription synth;
synth.componentFlags = 0;
synth.componentFlagsMask = 0;
synth.componentType = kAudioUnitType_MusicDevice;
synth.componentSubType = kAudioUnitSubType_DLSSynth;
synth.componentManufacturer = kAudioUnitManufacturer_Apple;
AUNode synthNode;
AUGraphNewNode(mainGraph, &synth, 0, NULL, &synthNode);

[self setInternalReverbForSynthNode: synthNode isOn: NO ];

OSStatus err;
AUNode mixer;
err = AUGraphGetIndNode(mainGraph, 0, &mixer);
UInt32 i;
MusicSequenceGetTrackIndex(sequence, track, &i);
err = AUGraphConnectNodeInput(mainGraph, synthNode, 0, mixer, i);
///This is making a weird error!!!!!!
Boolean b;
AUGraphUpdate(mainGraph, &b);
AUGraphInitialize(mainGraph);
}

Craig Bakalian
www.eThinkingCap.com
_______________________________________________
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: Multiple Connections to an Output Node
      • From: Robert Grant <email@hidden>
  • Prev by Date: Re: HAL Device question
  • Next by Date: Re: Anybody switching to XCode already ?
  • Previous by thread: Multiple Connections to an Output Node
  • Next by thread: Re: Multiple Connections to an Output Node
  • Index(es):
    • Date
    • Thread