Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::sndio::IDevice Class Referenceabstract

Base interface for sinks and sources. More...

#include <idevice.h>

Inheritance diagram for roc::sndio::IDevice:

Public Member Functions

virtual ISinkto_sink ()=0
 Cast IDevice to ISink. More...
 
virtual ISourceto_source ()=0
 Cast IDevice to ISink. More...
 
virtual DeviceType type () const =0
 Get device type. More...
 
virtual DeviceState state () const =0
 Get device state. More...
 
virtual void pause ()=0
 Pause device. More...
 
virtual bool resume ()=0
 Resume device after pause. More...
 
virtual bool restart ()=0
 Restart device. More...
 
virtual audio::SampleSpec sample_spec () const =0
 Get sample specification of the device. More...
 
virtual core::nanoseconds_t latency () const =0
 Get latency of the device. More...
 
virtual bool has_latency () const =0
 Check if the device supports latency reports. More...
 
virtual bool has_clock () const =0
 Check if the device has own clock. More...
 

Detailed Description

Base interface for sinks and sources.

Definition at line 28 of file idevice.h.

Member Function Documentation

◆ has_clock()

◆ has_latency()

◆ latency()

◆ pause()

◆ restart()

virtual bool roc::sndio::IDevice::restart ( )
pure virtual

◆ resume()

◆ sample_spec()

◆ state()

◆ to_sink()

◆ to_source()

◆ type()


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