#include "driver.hh"
Public Types | |
typedef std::shared_ptr< MidiDriver > | MidiDriverP |
![]() | |
enum | { SURROUND , HEADSET , RECORDER , MIDI_THRU , JACK , ALSA_USB , ALSA_KERN , OSS , PULSE , ALSA_USER , PSEUDO , PAUTO , PNULL , WCARD , WDEV , WSUB } |
typedef std::shared_ptr< Driver > | DriverP |
using | Entry = DriverEntry |
using | EntryVec = DriverEntryS |
enum | IODir { READONLY , WRITEONLY , READWRITE } |
Public Member Functions | |
virtual uint | fetch_events (MidiEventOutput &estream, double samplerate)=0 |
virtual bool | has_events ()=0 |
![]() | |
virtual void | close ()=0 |
String | devid () const |
bool | opened () const |
bool | readable () const |
bool | writable () const |
Static Public Member Functions | |
static EntryVec | list_drivers () |
static MidiDriverP | open (const String &devid, IODir iodir, Ase::Error *ep) |
static String | register_driver (const String &driverid, const std::function< MidiDriverP(const String &)> &create, const std::function< void(EntryVec &)> &list) |
![]() | |
static String | priority_string (uint priority) |
Protected Member Functions | |
MidiDriver (const String &driver, const String &devid) | |
virtual Ase::Error | open (IODir iodir)=0 |
![]() | |
Driver (const String &driver, const String &devid) | |
template<class Derived > | |
std::shared_ptr< Derived > | shared_from_base () |
virtual | ~Driver () |
Additional Inherited Members | |
![]() | |
const String | devid_ |
const String | driver_ |
size_t | flags_ |
Base class for a MIDI devices.
typedef std::shared_ptr<MidiDriver> MidiDriverP |
|
explicitprotected |
|
protectedpure virtual |
Implemented in NullMidiDriver.
|
static |
|
pure virtual |
Implemented in NullMidiDriver.
|
pure virtual |
Implemented in NullMidiDriver.
|
static |
|
static |