|
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. More... | |
| bool | valid () const |
| Check if the object was successfully constructed. More... | |
| bool | open (const char *driver, const char *output) |
| Open output file or device. More... | |
| virtual size_t | sample_rate () const |
| Get sample rate of the sink. More... | |
| virtual bool | has_clock () const |
| Check if the sink has own clock. More... | |
| virtual void | write (audio::Frame &frame) |
| Write audio frame. More... | |
SoX sink.
Definition at line 32 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::ISink.
| bool roc::sndio::SoxSink::open | ( | const char * | driver, |
| const char * | output | ||
| ) |
Open output file or device.
Parameters
driver is output driver name;output is output file or device name, "-" for stdout.driver or output are NULL, defaults are used.
|
virtual |
Get sample rate of the sink.
Implements roc::sndio::ISink.
| bool roc::sndio::SoxSink::valid | ( | ) | const |
Check if the object was successfully constructed.
|
virtual |
Write audio frame.
Implements roc::audio::IWriter.