|
Anklang-0.3.0.dev551+gad1415e2 anklang-0.3.0.dev551+gad1415e2
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Base class for a PCM and MIDI devices. More...
#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 } |
| enum | IODir { READONLY , WRITEONLY , READWRITE } |
| typedef std::shared_ptr< Driver > | DriverP |
| using | Entry = DriverEntry |
| using | EntryVec = DriverEntryS |
Public Member Functions | |
| 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 String | priority_string (uint priority) |
| Return string which represents the given priority mask. | |
Protected Member Functions | |
| Driver (const String &driver, const String &devid) | |
| template<class Derived > | |
| std::shared_ptr< Derived > | shared_from_base () |
Protected Attributes | |
| const String | driver_ |
| const String | devid_ |
| size_t | flags_ |
| typedef std::shared_ptr<Driver> Ase::Driver::DriverP |
| using Ase::Driver::Entry = DriverEntry |
| String Ase::Driver::devid | ( | ) | const |
Return a string which uniquely identifies this driver and device.
Definition at line 24 of file driver.cc.
References std::string::empty().
Referenced by Ase::PcmDriver::open().
Return string which represents the given priority mask.
Definition at line 31 of file driver.cc.
References std::vector::push_back(), and Ase::string_join().
|
protected |