Class Ase::MidiDriver
ClassList > Ase > MidiDriver
Base class for a MIDI devices.
#include <driver.hh>
Inherits the following classes: Ase::Driver
Inherited by the following classes: Ase::NullMidiDriver
Public Types
Type | Name |
---|---|
typedef std::shared_ptr< MidiDriver > | MidiDriverP |
Public Types inherited from Ase::Driver
See Ase::Driver
Type | Name |
---|---|
enum | Driver |
typedef std::shared_ptr< Driver > | DriverP |
typedef DriverEntry | Entry |
typedef DriverEntryS | EntryVec |
enum | IODir |
Public Functions
Type | Name |
---|---|
virtual uint | fetch_events (MidiEventOutput & estream, double samplerate) = 0 |
virtual bool | has_events () = 0 |
Public Functions inherited from Ase::Driver
See Ase::Driver
Type | Name |
---|---|
virtual void | close () = 0 |
String | devid () const Return a string which uniquely identifies this driver and device. |
bool | opened () const |
bool | readable () const |
bool | writable () const |
Public Static Functions
Type | Name |
---|---|
EntryVec | list_drivers () |
MidiDriverP | open (const String & devid, IODir iodir, Ase::Error * ep) |
String | register_driver (const String & driverid, const std::function< MidiDriverP(const String &)> & create, const std::function< void(EntryVec &)> & list) |
Public Static Functions inherited from Ase::Driver
See Ase::Driver
Type | Name |
---|---|
String | priority_string (uint priority) Return string which represents the given priority mask. |
Protected Attributes inherited from Ase::Driver
See Ase::Driver
Type | Name |
---|---|
const String | devid_ |
const String | driver_ |
size_t | flags_ = = 0 |
Protected Functions
Type | Name |
---|---|
MidiDriver (const String & driver, const String & devid) |
|
virtual Ase::Error | open (IODir iodir) = 0 |
Protected Functions inherited from Ase::Driver
See Ase::Driver
Type | Name |
---|---|
Driver (const String & driver, const String & devid) |
|
std::shared_ptr< Derived > | shared_from_base () |
virtual | ~Driver () |
Public Types Documentation
typedef MidiDriverP
typedef std::shared_ptr<MidiDriver> Ase::MidiDriver::MidiDriverP;
Public Functions Documentation
function fetch_events
virtual uint Ase::MidiDriver::fetch_events (
MidiEventOutput & estream,
double samplerate
) = 0
function has_events
virtual bool Ase::MidiDriver::has_events () = 0
Public Static Functions Documentation
function list_drivers
static EntryVec Ase::MidiDriver::list_drivers ()
function open [2/2]
static MidiDriverP Ase::MidiDriver::open (
const String & devid,
IODir iodir,
Ase::Error * ep
)
function register_driver
static String Ase::MidiDriver::register_driver (
const String & driverid,
const std::function< MidiDriverP(const String &)> & create,
const std::function< void(EntryVec &)> & list
)
Protected Functions Documentation
function MidiDriver
explicit Ase::MidiDriver::MidiDriver (
const String & driver,
const String & devid
)
function open [1/2]
virtual Ase::Error Ase::MidiDriver::open (
IODir iodir
) = 0
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/driver.hh