Example #1
0
        public void Process(IAudioStream stream)
        {
            if (Power.Value == EPowerStatus.Off)
            {
                return;
            }

            BlockBuffers();

            var leftChannel  = stream.Channels[0];
            var rigthChannel = stream.Channels[1];
            var lenght       = stream.Length;

            for (int i = 0; i < lenght; i += Step.Value)
            {
                LeftBuffer.AddValue(leftChannel.Samples[i]);
                RightBuffer.AddValue(rigthChannel.Samples[i]);
            }

            IsDirty = true;

            ReleaseBuffers();
        }