GAudio.GATData.GainCopyToInterlaced C# (CSharp) Method

GainCopyToInterlaced() public method

Copy and gain to an interleaved float[]
public GainCopyToInterlaced ( float destinationArray, int destinationOffset, int sourceIndex, int length, GATChannelGain channelGain ) : void
destinationArray float
destinationOffset int
sourceIndex int
length int
channelGain GATChannelGain
return void
        public void GainCopyToInterlaced( float[] destinationArray, int destinationOffset, int sourceIndex, int length, GATChannelGain channelGain )
        {
            sourceIndex = sourceIndex + _offset;
            length 		= sourceIndex + length;
            destinationOffset +=  channelGain.ChannelNumber;

            while( sourceIndex < length )
            {
                destinationArray[ destinationOffset ] = _parentArray[sourceIndex] * channelGain.Gain;
                destinationOffset += GATInfo.NbOfChannels;
                sourceIndex++;
            }
        }