|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
SoX sink. More...
#include <sox_sink.h>
Public Member Functions | |
| SoxSink (core::IAllocator &allocator, const Config &config) | |
| Initialize. | |
| bool | valid () const |
| Check if the object was successfully constructed. | |
| bool | open (const char *driver, const char *path) |
| Open output file or device. | |
| virtual audio::SampleSpec | sample_spec () const |
| Get sample specification of the sink. | |
| virtual core::nanoseconds_t | latency () const |
| Get latency of the sink. | |
| virtual bool | has_clock () const |
| Check if the sink has own clock. | |
| virtual void | write (audio::Frame &frame) |
| Write audio frame. | |
| virtual audio::SampleSpec | sample_spec () const =0 |
| Get sample specification of the terminal. | |
| virtual core::nanoseconds_t | latency () const =0 |
| Get latency of the terminal. | |
| virtual bool | has_clock () const =0 |
| Check if the terminal has own clock. | |
| virtual void | write (Frame &frame)=0 |
| Write audio frame. | |
Public Member Functions inherited from roc::core::ListNode | |
| ListNodeData * | list_node_data () const |
| Get list node data. | |
SoX sink.
Definition at line 33 of file sox_sink.h.
| roc::sndio::SoxSink::SoxSink | ( | core::IAllocator & | allocator, |
| const Config & | config | ||
| ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::ITerminal.
|
virtual |
Get latency of the sink.
Implements roc::sndio::ITerminal.
| bool roc::sndio::SoxSink::open | ( | const char * | driver, |
| const char * | path | ||
| ) |
Open output file or device.
Parameters
driver is output driver name;path is output file or device name, "-" for stdout.driver or path are NULL, defaults are used.
|
virtual |
Get sample specification of the sink.
Implements roc::sndio::ITerminal.
| bool roc::sndio::SoxSink::valid | ( | ) | const |
Check if the object was successfully constructed.
|
virtual |
Write audio frame.
Implements roc::audio::IFrameWriter.