12 #ifndef ROC_SNDIO_SOX_SOURCE_H_
13 #define ROC_SNDIO_SOX_SOURCE_H_
50 bool open(
const char* driver,
const char* input);
69 bool open_(
const char* driver,
const char* input);
73 sox_signalinfo_t in_signal_;
79 const size_t buffer_size_;
Memory allocator interface.
Base class for non-copyable objects.
bool open(const char *driver, const char *input)
Open input file or device.
virtual bool has_clock() const
Check if the source has own clock.
virtual bool read(audio::Frame &)
Read frame.
virtual size_t sample_rate() const
Get sample rate of an input file or a device.
virtual State state() const
Get current source state.
SoxSource(core::IAllocator &allocator, const Config &config)
Initialize.
virtual void wait_active() const
Wait until the source state becomes active.
bool valid() const
Check if the object was successfully constructed.
Memory allocator interface.
Various units used in packets.
Commonly used types and functions.