12#ifndef ROC_PIPELINE_CONVERTER_SOURCE_H_
13#define ROC_PIPELINE_CONVERTER_SOURCE_H_
Sample stream specification. Defines sample rate and channel layout.
Memory allocator interface.
Base class for non-copyable objects.
Optionally constructed object.
Converter source pipeline.
virtual core::nanoseconds_t latency() const
Get latency of the source.
virtual bool resume()
Resume paused reading.
virtual State state() const
Get current source state.
bool valid()
Check if the pipeline was successfully constructed.
virtual void pause()
Pause reading.
ConverterSource(const ConverterConfig &config, sndio::ISource &input_source, core::BufferFactory< audio::sample_t > &buffer_factory, core::IAllocator &allocator)
Initialize.
virtual void reclock(packet::ntp_timestamp_t timestamp)
Adjust source clock to match consumer clock.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the source.
virtual bool read(audio::Frame &)
Read frame.
virtual bool has_clock() const
Check if the sink has own clock.
virtual bool restart()
Restart reading from the beginning.
Audio resampler interface.
int64_t nanoseconds_t
Nanoseconds.
uint64_t ntp_timestamp_t
NTP timestamp.
Optionally constructed object.