#include "driver.hh"
Classes | |
struct | Flags |
Public Types | |
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 void | close ()=0 |
String | devid () const |
bool | opened () const |
bool | readable () const |
bool | writable () const |
Static Public Member Functions | |
static String | priority_string (uint priority) |
Protected Member Functions | |
Driver (const String &driver, const String &devid) | |
template<class Derived > | |
std::shared_ptr< Derived > | shared_from_base () |
virtual | ~Driver () |
Protected Attributes | |
const String | devid_ |
const String | driver_ |
size_t | flags_ |
Base class for a PCM and MIDI devices.
using Entry = DriverEntry |
using EntryVec = DriverEntryS |
anonymous enum |
enum IODir |
|
protectedvirtual |
bool opened | ( | ) | const |
bool readable | ( | ) | const |
bool writable | ( | ) | const |
String devid | ( | ) | const |
Return a string which uniquely identifies this driver and device.
|
pure virtual |
Implemented in NullPcmDriver, and NullMidiDriver.
Return string which represents the given priority mask.
|
protected |
|
protected |
|
protected |