/// <summary>Initializes a new instance of the <see cref="AudioDecoder" /> class.</summary> /// <param name="options">Audio decoder options.</param> /// <param name="pipeOptions">Options for input/output pipes. Defaults to <see cref="PipeOptions.Default" />.</param> /// <exception cref="ArgumentNullException"><paramref name="options" /> is <c>null</c>.</exception> public AudioDecoder(AudioDecoderOptions options, PipeOptions?pipeOptions = null) { ThrowIfNull(options, nameof(options)); _inputPipe = new Pipe(pipeOptions ?? PipeOptions.Default); _outputPipe = new Pipe(pipeOptions ?? PipeOptions.Default); }
/// <summary>Initializes a new instance of the <see cref="AudioDecoder"/> class.</summary> /// <param name="options">Audio decoder options.</param> /// <param name="pipeOptions">Options for input/output pipes. Defaults to <see cref="PipeOptions.Default" />.</param> public AudioDecoder(AudioDecoderOptions options, PipeOptions?pipeOptions = null) { _inputPipe = new Pipe(pipeOptions ?? PipeOptions.Default); _outputPipe = new Pipe(pipeOptions ?? PipeOptions.Default); }