Loader for the Midi format.
Create a new Player with the given sample rate, using the default
configuration file.
Will fail if 'rate' is not on the interval [11025,65535], or if neither
of the default configuration files exist ('/etc/wildmidi/wildmidi.cfg',
'/etc/wildmidi.cfg').
Create a new Player with the given config path and sample rate.
Will fail if 'rate' is not on the interval [11025,65535].
Sets the overall library volume level. The default is 100.
Loads a Midi file from memory.
Will fail if an internal error occurs in WildMidi (such as a parse
error).
Loads a Midi file from disk.
Will fail if the file does not exist, or if an internal error occurs in
WildMidi (such as a parse error).
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static