示例#1
0
        public OpusEncoder(AudioQuality quality, FrameSize frameSize)
        {
            _encoder = new OpusNative.OpusEncoder(SampleRate, 1)
            {
                EnableForwardErrorCorrection = false,
                Bitrate = GetTargetBitrate(quality)
            };

            _frameSize = GetFrameSize(frameSize);
        }