Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
roc::sndio::SoxBackend Class Reference

SoX backend. More...

#include <sox_backend.h>

Inheritance diagram for roc::sndio::SoxBackend:
Collaboration diagram for roc::sndio::SoxBackend:

Public Member Functions

void set_frame_size (core::nanoseconds_t frame_length, const audio::SampleSpec &sample_spec)
 Set internal SoX frame size. More...
 
virtual void discover_drivers (core::Array< DriverInfo, MaxDrivers > &driver_list)
 Append supported drivers to the list. More...
 
virtual IDeviceopen_device (DeviceType device_type, DriverType driver_type, const char *driver, const char *path, const Config &config, core::IArena &arena)
 Create and open a sink or source. More...
 

Detailed Description

SoX backend.

Definition at line 25 of file sox_backend.h.

Member Function Documentation

◆ discover_drivers()

virtual void roc::sndio::SoxBackend::discover_drivers ( core::Array< DriverInfo, MaxDrivers > &  driver_list)
virtual

Append supported drivers to the list.

Implements roc::sndio::IBackend.

◆ open_device()

virtual IDevice* roc::sndio::SoxBackend::open_device ( DeviceType  device_type,
DriverType  driver_type,
const char *  driver,
const char *  path,
const Config config,
core::IArena arena 
)
virtual

Create and open a sink or source.

Implements roc::sndio::IBackend.

◆ set_frame_size()

void roc::sndio::SoxBackend::set_frame_size ( core::nanoseconds_t  frame_length,
const audio::SampleSpec sample_spec 
)

Set internal SoX frame size.

Remarks
Number of samples for all channels.

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