12 #ifndef ROC_PIPELINE_TRANSCODER_SOURCE_H_
13 #define ROC_PIPELINE_TRANSCODER_SOURCE_H_
Sample specification. Describes sample rate and channels.
Base class for non-copyable objects.
Optionally constructed object.
Shared ownership intrusive pointer.
Transcoder source pipeline.
virtual sndio::DeviceState state() const
Get device state.
virtual void pause()
Pause reading.
virtual sndio::DeviceType type() const
Get device type.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the source.
virtual bool resume()
Resume paused reading.
virtual sndio::ISink * to_sink()
Cast IDevice to ISink.
bool is_valid()
Check if the pipeline was successfully constructed.
virtual core::nanoseconds_t latency() const
Get latency of the source.
virtual void reclock(core::nanoseconds_t timestamp)
Adjust source clock to match consumer clock.
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.
virtual bool has_latency() const
Check if the source supports latency reports.
virtual sndio::ISource * to_source()
Cast IDevice to ISink.
TranscoderSource(const TranscoderConfig &config, sndio::ISource &input_source, core::IPool &buffer_pool, core::IArena &arena)
Initialize.
Audio resampler interface.
nanoseconds_t timestamp(clock_t clock)
Get current timestamp in nanoseconds.
int64_t nanoseconds_t
Nanoseconds.
Optionally constructed object.