Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Base class for a MIDI devices. More...
#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 } |
enum | IODir { READONLY , WRITEONLY , READWRITE } |
typedef std::shared_ptr< Driver > | DriverP |
using | Entry = DriverEntry |
using | EntryVec = DriverEntryS |
Public Member Functions | |
virtual bool | has_events ()=0 |
virtual uint | fetch_events (MidiEventOutput &estream, double samplerate)=0 |
![]() | |
bool | opened () const |
bool | readable () const |
bool | writable () const |
String | devid () const |
Return a string which uniquely identifies this driver and device. | |
virtual void | close ()=0 |
![]() | |
T | enable_shared_from_this (T... args) |
T | operator= (T... args) |
T | shared_from_this (T... args) |
T | weak_from_this (T... args) |
T | ~enable_shared_from_this (T... args) |
Static Public Member Functions | |
static MidiDriverP | open (const String &devid, IODir iodir, Ase::Error *ep) |
static EntryVec | list_drivers () |
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) |
Return string which represents the given priority mask. | |
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 () |
Additional Inherited Members | |
![]() | |
const String | driver_ |
const String | devid_ |
size_t | flags_ |
|
static |
|
static |