public void Dispose() { if (_decoder != null) { _decoder.Dispose(); } _decoder = null; }
public OpusDecoder(WaveFormat format) { _format = format; _decoder = new OpusNative.OpusDecoder(format.SampleRate, format.Channels) { EnableForwardErrorCorrection = false }; }
public OpusDecoder([NotNull] WaveFormat format) { if (format == null) { throw new ArgumentNullException("format"); } _format = format; _decoder = new OpusNative.OpusDecoder(format.SampleRate, format.Channels) { EnableForwardErrorCorrection = false, }; }