internal void HeaderIn(ref VorbisComment comment, ref OggPacket packet)
        {
            Result result = SafeNativeMethods.VorbisSynthesisHeaderIn(_info, ref comment, ref packet);

            switch (result)
            {
            case Result.Ok:
                return;

            case Result.NotVorbisError:
                throw new UnsupportedAudioException(Resources.NativeVorbisDecoderNotVorbisError);

            default:
                throw new IOException(string.Format(CultureInfo.CurrentCulture, Resources.NativeVorbisDecoderHeaderInError, result));
            }
        }