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

            _format  = format;
            _decoder = new OpusNative.OpusDecoder(format.SampleRate, format.Channels)
            {
                EnableForwardErrorCorrection = false,
            };
        }