public SampleRateConverter(ConverterType type, int channels)
        {
            srcState = interop.src_new(type, channels, out error);
            ThrowExceptionForError(error);
            srcData = new SRC_DATA();

            SetRatio(1d);

            this.channels        = channels;
            this.bufferedSamples = 0;
        }
Exemplo n.º 2
0
 public static extern int src_process(IntPtr state, ref SRC_DATA data);
Exemplo n.º 3
0
 public int src_process(IntPtr state, ref SRC_DATA data)
 {
     return(Interop32.src_process(state, ref data));
 }