Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ase::Driver Class Referenceabstract

Base class for a PCM and MIDI devices. More...

#include "driver.hh"

Inheritance diagram for Ase::Driver:
[legend]

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< DriverDriverP
 
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 >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 
~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< Derivedshared_from_base ()
 

Protected Attributes

const String driver_
 
const String devid_
 
size_t flags_
 

Detailed Description

Base class for a PCM and MIDI devices.

Definition at line 29 of file driver.hh.

Member Typedef Documentation

◆ DriverP

Definition at line 60 of file driver.hh.

◆ Entry

Definition at line 68 of file driver.hh.

◆ EntryVec

using Ase::Driver::EntryVec = DriverEntryS

Definition at line 69 of file driver.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 39 of file driver.hh.

◆ IODir

enum Ase::Driver::IODir

Definition at line 59 of file driver.hh.

Constructor & Destructor Documentation

◆ Driver()

Ase::Driver::Driver ( const String driver,
const String devid 
)
explicitprotected

Definition at line 15 of file driver.cc.

◆ ~Driver()

Ase::Driver::~Driver ( )
protectedvirtual

Definition at line 19 of file driver.cc.

Member Function Documentation

◆ devid()

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().

◆ opened()

bool Ase::Driver::opened ( ) const

Definition at line 61 of file driver.hh.

◆ priority_string()

String Ase::Driver::priority_string ( uint  priority)
static

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().

◆ readable()

bool Ase::Driver::readable ( ) const

Definition at line 62 of file driver.hh.

◆ shared_from_base()

template<class Derived >
std::shared_ptr< Derived > Ase::Driver::shared_from_base ( )
protected

Definition at line 37 of file driver.hh.

◆ writable()

bool Ase::Driver::writable ( ) const

Definition at line 63 of file driver.hh.

Member Data Documentation

◆ devid_

const String Ase::Driver::devid_
protected

Definition at line 32 of file driver.hh.

◆ driver_

const String Ase::Driver::driver_
protected

Definition at line 32 of file driver.hh.

◆ flags_

size_t Ase::Driver::flags_
protected

Definition at line 33 of file driver.hh.


The documentation for this class was generated from the following files: