Exemple #1
0
        internal void Finish()
        {
            if (!SafeNativeMethods.StreamEncoderFinish(_handle))
            {
                throw new AudioEncodingException($"FLAC encountered error '{GetState()}' while finishing encoding.");
            }

            // The pre-allocation may have been based on an estimated frame count
            _stream.SetLength(_endOfData);
        }