Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Sound I/O. More...
Classes | |
class | BackendDispatcher |
Backend dispatcher. More... | |
class | BackendMap |
Backend map. More... | |
struct | Config |
Sink and source config. More... | |
struct | DriverInfo |
Driver information. More... | |
class | IBackend |
Backend interface. More... | |
class | IDevice |
Base interface for sinks and sources. More... | |
class | ISink |
Sink interface. More... | |
class | ISource |
Source interface. More... | |
class | Pump |
Audio pump. More... | |
class | PulseaudioBackend |
Pulseaudio backend. More... | |
class | PulseaudioDevice |
PulseAudio device. Can be either source or sink depending on constructor parameter. More... | |
class | SndfileBackend |
Sndfile backend. More... | |
class | SndfileSink |
Sndfile sink. More... | |
class | SndfileSource |
Sndfile source. More... | |
class | SoxBackend |
SoX backend. More... | |
class | SoxSink |
SoX sink. More... | |
class | SoxSource |
SoX source. More... | |
class | WavBackend |
WAV backend. More... | |
class | WavHeader |
WAV header. More... | |
class | WavSink |
WAV sink. More... | |
class | WavSource |
WAV source. More... | |
Enumerations | |
enum | DeviceState { DeviceState_Active , DeviceState_Idle , DeviceState_Paused } |
Device state. More... | |
enum | DeviceType { DeviceType_Sink , DeviceType_Source } |
Device type. More... | |
enum | DriverType { DriverType_Invalid , DriverType_File , DriverType_Device } |
Driver type. More... | |
enum | DriverFlags { DriverFlag_IsDefault = (1 << 0) , DriverFlag_SupportsSource = (1 << 1) , DriverFlag_SupportsSink = (1 << 2) } |
Driver flags. More... | |
Functions | |
const char * | device_state_to_str (DeviceState state) |
Convert device state to string. More... | |
const char * | device_type_to_str (DeviceType type) |
Convert device type to string. More... | |
const char * | driver_type_to_str (DriverType type) |
Convert driver type to string. More... | |
ROC_ATTR_NODISCARD bool | print_supported (BackendDispatcher &backend_dispatcher, core::IArena &arena) |
Print supported schemes and formats. More... | |
Variables | |
const core::nanoseconds_t | DefaultFrameLength = 10 * core::Millisecond |
Default frame length. 10ms is rather high, but works well even on cheap sound cards and CPUs. Usually you can use much lower values. More... | |
Sound I/O.
Device state.
Definition at line 19 of file device_state.h.
Device type.
Enumerator | |
---|---|
DeviceType_Sink | Sink. |
DeviceType_Source | Source. |
Definition at line 19 of file device_type.h.
const char* roc::sndio::device_state_to_str | ( | DeviceState | state | ) |
Convert device state to string.
const char* roc::sndio::device_type_to_str | ( | DeviceType | type | ) |
Convert device type to string.
const char* roc::sndio::driver_type_to_str | ( | DriverType | type | ) |
Convert driver type to string.
ROC_ATTR_NODISCARD bool roc::sndio::print_supported | ( | BackendDispatcher & | backend_dispatcher, |
core::IArena & | arena | ||
) |
Print supported schemes and formats.
const core::nanoseconds_t roc::sndio::DefaultFrameLength = 10 * core::Millisecond |