Tutorial   Class/Enum List   File List   Compound Members   C interface  

Public Member Functions | Static Public Member Functions | List of all members
rt::midi::MidiApi Class Referenceabstract
Inheritance diagram for rt::midi::MidiApi:
rt::midi::MidiInApi rt::midi::MidiOutApi

Public Member Functions

void error (RtMidiError::Type type, std::string errorString)
 A basic error reporting function for RtMidi classes.
 

Static Public Member Functions

static void setDefaultErrorCallback (RtMidiErrorCallback errorCallback=NULL, void *userData=0)
 Set a callback for objects that have none of their own.
 

Member Function Documentation

◆ setDefaultErrorCallback()

static void rt::midi::MidiApi::setDefaultErrorCallback ( RtMidiErrorCallback  errorCallback = NULL,
void *  userData = 0 
)
static

Set a callback for objects that have none of their own.

Applies to every RtMidi object, including errors raised during construction, which a per-object callback cannot see. An object's own callback takes precedence. Unlike an object's own callback, this one does not stop fatal errors: after it returns, anything other than a WARNING or DEBUG_WARNING is still thrown as an RtMidiError. Not synchronized: set it once before creating any RtMidi object.


The documentation for this class was generated from the following file:

©2003-2023 Gary P. Scavone, McGill University. All Rights Reserved.
Maintained by Gary P. Scavone, gary at music.mcgill.ca