internal void ProcessInterleaved(ReadOnlySpan <int> buffer, uint frames) { if (!SafeNativeMethods.StreamEncoderProcessInterleaved( _handle, MemoryMarshal.GetReference(buffer), frames)) { throw new AudioEncodingException($"FLAC encountered error '{GetState()}' while processing samples."); } }