12 #ifndef ROC_SNDIO_SOX_SINK_H_
13 #define ROC_SNDIO_SOX_SINK_H_
50 bool open(
const char* driver,
const char* output);
63 bool open_(
const char* driver,
const char* output);
64 void write_(
const sox_sample_t* samples,
size_t n_samples);
67 sox_format_t* output_;
68 sox_signalinfo_t out_signal_;
73 const size_t buffer_size_;
Memory allocator interface.
Base class for non-copyable objects.
virtual void write(audio::Frame &frame)
Write audio frame.
bool open(const char *driver, const char *output)
Open output file or device.
virtual bool has_clock() const
Check if the sink has own clock.
SoxSink(core::IAllocator &allocator, const Config &config)
Initialize.
bool valid() const
Check if the object was successfully constructed.
virtual size_t sample_rate() const
Get sample rate of the sink.
Memory allocator interface.
Various units used in packets.
Commonly used types and functions.