PortMidi v0.2.0.0 Release Notes
-
๐ Changed
- Error reporting (Breaking change).
All functions now adhere to the
Either
conventions: real errors are returned in aLeft
, successes are returned in aRight
. The non-errors constructors ofPMError
(NoError
andGotData
) were moved to a new typePMSuccess
.
โ Added
- ๐ The
poll
function which binds to ๐Pm_Poll
. - The
readEventsToBuffer
function, to read events in a user-supplied buffer. - The
PMSuccess
type representing non-errors, with its associated functionsgetText
andgetSuccessText
.
- Error reporting (Breaking change).
All functions now adhere to the