public void SetAudioInputIndex(int index, bool setRelated)
{
Routing current = this.audioRoutingList[index];
int depth = current.depth + 1;
for (int j = 0; j < depth; j++)
{
int hr = current.crossbar.Route(current.outputIndex, current.inputIndex);
//ASSERT (0 == hr);
if (setRelated && current.outputIndexRelated != -1 && current.inputIndexRelated != -1)
hr = current.crossbar.Route(current.outputIndexRelated, current.inputIndexRelated);
Trace.WriteLineIf(trace.TraceInfo, string.Format("Routing, AudioOutIndex={0} AudioInIndex={1}",
current.outputIndex, current.inputIndex));
if (index + 1 < this.audioRoutingList.Count)
current = this.audioRoutingList[index + 1]; //pCurrent++;
}
this.currentAudioRoutingIndex = index;
}