MixFrom() публичный Метод

Additive copy from a float[]
public MixFrom ( float sourceArray, int destinationIndex, int sourceIndex, int length ) : void
sourceArray float
destinationIndex int
sourceIndex int
length int
Результат void
        bool IGATTrackContributor.MixToTrack(GATData trackMonoBuffer, int trackNb)
        {
            if (_streamBuffer == null || _streamDataEmpty)
            {
                return(false);
            }

            if (_exclusive)
            {
                trackMonoBuffer.CopyFrom(_streamBuffer, 0, _streamOffset, GATInfo.AudioBufferSizePerChannel);
            }
            else
            {
                trackMonoBuffer.MixFrom(_streamBuffer, 0, _streamOffset, GATInfo.AudioBufferSizePerChannel);
            }

            return(true);
        }
Пример #2
0
        bool IGATTrackContributor.MixToTrack( GATData trackMonoBuffer, int trackNb )
        {
            if( _streamBuffer == null || _streamDataEmpty )
                return false;

            if( _exclusive )
            {
                trackMonoBuffer.CopyFrom( _streamBuffer, 0, _streamOffset, GATInfo.AudioBufferSizePerChannel );
            }
            else
            {
                trackMonoBuffer.MixFrom( _streamBuffer, 0, _streamOffset, GATInfo.AudioBufferSizePerChannel );
            }

            return true;
        }