Ejemplo n.º 1
0
        /// <summary>
        /// Sets the number of channels, 1 = mono, 2 = stereo.
        /// </summary>
        public void SetChannels(int channels)
        {
            if (!VerifyNumberOfChannels(channels) || (_transposer.NumberOfChannels == channels))
            {
                return;
            }

            _transposer.SetChannels(channels);
            _inputBuffer.Channels  = channels;
            _midBuffer.Channels    = channels;
            _outputBuffer.Channels = channels;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets the number of channels, 1 = mono, 2 = stereo
        /// </summary>
        public void SetChannels(int channels)
        {
            Debug.Assert(channels > 0);

            if (_transposer.channels == channels)
            {
                return;
            }
            _transposer.SetChannels(channels);

            _inputBuffer.SetChannels(channels);
            _midBuffer.SetChannels(channels);
            _outputBuffer.SetChannels(channels);
        }