Class Ase::NullPcmDriver
ClassList > Ase > NullPcmDriver
Inherits the following classes: Ase::PcmDriver
Public Types inherited from Ase::PcmDriver
See Ase::PcmDriver
Type | Name |
---|---|
typedef std::shared_ptr< PcmDriver > | PcmDriverP |
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 |
---|---|
NullPcmDriver (const String & driver, const String & devid) |
|
virtual void | close () override |
virtual Error | open (IODir iodir, const PcmDriverConfig & config) override |
uint | pcm_block_length () override const |
virtual bool | pcm_check_io (int64 * timeout_usecs) override |
void | pcm_latency (uint * rlatency, uint * wlatency) override const |
uint | pcm_mix_freq () override const |
uint | pcm_n_channels () override const |
virtual size_t | pcm_read (size_t n, float * values) override |
virtual void | pcm_write (size_t n, const float * values) override |
Public Functions inherited from Ase::PcmDriver
See Ase::PcmDriver
Type | Name |
---|---|
virtual uint | pcm_block_length () const = 0 |
virtual bool | pcm_check_io (int64 * timeoutp) = 0 |
virtual void | pcm_latency (uint * rlatency, uint * wlatency) const = 0 |
virtual uint | pcm_mix_freq () const = 0 |
virtual uint | pcm_n_channels () const = 0 |
virtual size_t | pcm_read (size_t n, float * values) = 0 |
virtual void | pcm_write (size_t n, const float * values) = 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 |
---|---|
PcmDriverP | create (const String & devid) |
void | list_drivers (Driver::EntryVec & entries) |
Public Static Functions inherited from Ase::PcmDriver
See Ase::PcmDriver
Type | Name |
---|---|
EntryVec | list_drivers () |
PcmDriverP | open (const String & devid, IODir desired, IODir required, const PcmDriverConfig & config, Ase::Error * ep) Open PCM device and return a pointer to it, or nullptr with *ep set on error. |
String | register_driver (const String & driverid, const std::function< PcmDriverP(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 inherited from Ase::PcmDriver
See Ase::PcmDriver
Type | Name |
---|---|
PcmDriver (const String & driver, const String & devid) |
|
virtual Ase::Error | open (IODir iodir, const PcmDriverConfig & config) = 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 Functions Documentation
function NullPcmDriver
inline explicit Ase::NullPcmDriver::NullPcmDriver (
const String & driver,
const String & devid
)
function close
inline virtual void Ase::NullPcmDriver::close () override
function open
inline virtual Error Ase::NullPcmDriver::open (
IODir iodir,
const PcmDriverConfig & config
) override
function pcm_block_length
inline uint Ase::NullPcmDriver::pcm_block_length () override const
function pcm_check_io
inline virtual bool Ase::NullPcmDriver::pcm_check_io (
int64 * timeout_usecs
) override
function pcm_latency
inline void Ase::NullPcmDriver::pcm_latency (
uint * rlatency,
uint * wlatency
) override const
function pcm_mix_freq
inline uint Ase::NullPcmDriver::pcm_mix_freq () override const
function pcm_n_channels
inline uint Ase::NullPcmDriver::pcm_n_channels () override const
function pcm_read
inline virtual size_t Ase::NullPcmDriver::pcm_read (
size_t n,
float * values
) override
function pcm_write
inline virtual void Ase::NullPcmDriver::pcm_write (
size_t n,
const float * values
) override
Public Static Functions Documentation
function create
static inline PcmDriverP Ase::NullPcmDriver::create (
const String & devid
)
function list_drivers
static inline void Ase::NullPcmDriver::list_drivers (
Driver::EntryVec & entries
)
The documentation for this class was generated from the following file /__w/anklang/anklang/ase/driver.cc