Ios 将AUNode效果连接为类型Send而不是Insert
我有一个带有一连串效果的音频图,但它们像插入一样连接在一起Ios 将AUNode效果连接为类型Send而不是Insert,ios,objective-c,macos,core-audio,Ios,Objective C,Macos,Core Audio,我有一个带有一连串效果的音频图,但它们像插入一样连接在一起 AUGraphConnectNodeInput (processingGraph, mixerNode, 0, reverbNode1, 0); AUGraphConnectNodeInput (processingGraph, delayNode, 0, reverbNode1, 0); AUGraphConnectNodeInput (processingGraph, reverbNode, 0, iONode, 0); 但
AUGraphConnectNodeInput (processingGraph, mixerNode, 0, reverbNode1, 0);
AUGraphConnectNodeInput (processingGraph, delayNode, 0, reverbNode1, 0);
AUGraphConnectNodeInput (processingGraph, reverbNode, 0, iONode, 0);
但我需要混响和延迟效果,比如发送连接。
这就是我的联系:
混频器节点->延迟节点->混响节点->离子节点
这就是我需要的:
mixerNode----------------->iONode
混频器节点->混响节点-->离子节点
mixerNode->DelayNode->iONode
我看到了一个样本,像这样的AVFoundation很简单
[_engine connect:_player to:_reverb format:playerFormat];
[_engine connect:_reverb to:mainMixer fromBus:0 toBus:0 format:playerFormat];
[_engine connect:_distortion to:mainMixer fromBus:0 toBus:2 format:stereoFormat];
NSArray<AVAudioConnectionPoint *> *destinationNodes = [NSArray arrayWithObjects:[[AVAudioConnectionPoint alloc] initWithNode:_engine.mainMixerNode bus:1],
[[AVAudioConnectionPoint alloc] initWithNode:_distortion bus:0],
nil];
[_engine connect:_sampler toConnectionPoints:destinationNodes fromBus:0 format:stereoFormat];
[_引擎连接:_播放器至:_混响格式:播放性能];
[_引擎连接:_混响到:主混音器从总线:0到总线:0格式:播放性能];
[_引擎连接:_失真到:主混音器从总线:0到总线:2格式:立体声格式];
NSArray*destinationNodes=[NSArray arrayWithObjects:[[AVAudioConnectionPoint alloc]initWithNode:\u engine.mainMixerNode总线:1],
[[AVAudioConnectionPoint alloc]initWithNode:\u失真总线:0],
零];
[_引擎连接:_采样器到连接点:来自总线的destinationNodes:0格式:stereoFormat];
我的问题是。。。如何使用aunode和我的处理图进行这种类型的连接?嗯。。。如果有人需要它,解决方案似乎是kAudioUnitSubType_Multiplicater