12#ifndef ROC_SNDIO_SOX_SOURCE_H_
13#define ROC_SNDIO_SOX_SOURCE_H_
52 bool open(
const char* driver,
const char* path);
82 bool setup_names_(
const char* driver,
const char* path);
88 bool seek_(uint64_t offset);
99 sox_signalinfo_t in_signal_;
Sample stream specification. Defines sample rate and channel layout.
Memory allocator interface.
Base class for non-copyable objects.
bool open(const char *driver, const char *path)
Open input file or device.
virtual void pause()
Pause reading.
virtual bool has_clock() const
Check if the source has own clock.
virtual bool restart()
Restart reading from the beginning.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the source.
virtual core::nanoseconds_t latency() const
Get latency of the source.
virtual bool read(audio::Frame &)
Read frame.
virtual State state() const
Get current source state.
SoxSource(core::IAllocator &allocator, const Config &config)
Initialize.
virtual void reclock(packet::ntp_timestamp_t timestamp)
Adjust source clock to match consumer clock.
virtual bool resume()
Resume paused reading.
bool valid() const
Check if the object was successfully constructed.
Memory allocator interface.
int64_t nanoseconds_t
Nanoseconds.
uint64_t ntp_timestamp_t
NTP timestamp.
Commonly used types and functions.
Various units used in packets.