12#ifndef ROC_SNDIO_SOX_SINK_H_
13#define ROC_SNDIO_SOX_SINK_H_
51 bool open(
const char* driver,
const char* path);
67 bool open_(
const char* driver,
const char* path);
68 void write_(
const sox_sample_t* samples,
size_t n_samples);
71 sox_format_t* output_;
72 sox_signalinfo_t out_signal_;
Sample stream specification. Defines sample rate and channel layout.
Memory allocator interface.
Base class for non-copyable objects.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the sink.
virtual void write(audio::Frame &frame)
Write audio frame.
bool open(const char *driver, const char *path)
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.
virtual core::nanoseconds_t latency() const
Get latency of the sink.
bool valid() const
Check if the object was successfully constructed.
Memory allocator interface.
int64_t nanoseconds_t
Nanoseconds.
Commonly used types and functions.
Various units used in packets.