CodeTV.CrossbarHelper.SetAudioInputIndex C# (CSharp) Méthode

SetAudioInputIndex() public méthode

public SetAudioInputIndex ( int index, bool setRelated ) : void
index int
setRelated bool
Résultat void
        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;
        }