internal void SetupManaged(int channels, int sampleRate, int minimumBitRate, int nominalBitRate, int maximumBitRate) { Result result = SafeNativeMethods.VorbisEncodeSetupManaged(_info, channels, sampleRate, minimumBitRate, nominalBitRate, maximumBitRate); if (result != Result.Ok) { throw new IOException(string.Format(CultureInfo.CurrentCulture, Resources.NativeVorbisEncoderSetupError, result)); } }