Ejemplo n.º 1
0
        public unsafe int Read(float[] buffer, int offset, int count)
        {
            Input.Read(buffer, offset, count);

            var channels = this.WaveFormat.Channels;

            for (int i = 0; i < (count / channels); i++)
            {
                fixed(float *sample = &buffer[i * channels])
                {
                    Effect.Process(sample);
                }
            }

            return(count);
        }