Class ReaderSettings
Settings according to which
MidiReader should read MIDI data.
Inheritance
ReaderSettings
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class ReaderSettings
Properties
Buffer
Declaration
public byte[] Buffer { get; set; }
Property Value
BufferingPolicy
Gets or sets a rule according to which MIDI data should be buffered before reading.
The default is
UseFixedSizeBuffer.
Declaration
public BufferingPolicy BufferingPolicy { get; set; }
Property Value
Exceptions
BufferSize
Declaration
public int BufferSize { get; set; }
Property Value
Exceptions
NonSeekableStreamBufferSize
Gets or sets internal buffer for reading MIDI data from non-seekable stream.
Declaration
public int NonSeekableStreamBufferSize { get; set; }
Property Value
Exceptions
NonSeekableStreamIncrementalBytesReadingStep
Gets or sets size of chunk for incremental reading of MIDI data from non-seekable stream.
Declaration
public int NonSeekableStreamIncrementalBytesReadingStep { get; set; }
Property Value
Exceptions
NonSeekableStreamIncrementalBytesReadingThreshold
Gets or sets minimum count of bytes to read them from non-seekable stream incrementally instead of
reading them all at once.
Declaration
public int NonSeekableStreamIncrementalBytesReadingThreshold { get; set; }
Property Value
Exceptions
ReadFromMemory
Gets or sets a value indicating whether all MIDI data should be put to memory and read from there.
The default value is false
.
Declaration
[Obsolete("OBS2: Use ReaderSettings.BufferingPolicy = BufferingPolicy.BufferAllData. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs2.")]
public bool ReadFromMemory { get; set; }
Property Value