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;
        }
Example #2
0
 public static extern int src_process(IntPtr state, ref SRC_DATA data);
 public int src_process(IntPtr state, ref SRC_DATA data)
 {
     return(Interop32.src_process(state, ref data));
 }