|
Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
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 |
Public Types inherited from Ase::Driver | |
| 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 |
Public Member Functions inherited from Ase::Driver | |
| 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 |
Public Member Functions inherited from std::enable_shared_from_this< Driver > | |
| 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 Public Member Functions inherited from Ase::Driver | |
| 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 |
Protected Member Functions inherited from Ase::Driver | |
| Driver (const String &driver, const String &devid) | |
| template<class Derived > | |
| std::shared_ptr< Derived > | shared_from_base () |
Additional Inherited Members | |
Protected Attributes inherited from Ase::Driver | |
| const String | driver_ |
| const String | devid_ |
| size_t | flags_ |
|
static |
|
static |