|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
Transcoder source pipeline. More...
#include <transcoder_source.h>
Public Member Functions | |
| TranscoderSource (const TranscoderConfig &config, sndio::ISource &input_source, core::BufferFactory< audio::sample_t > &buffer_factory, core::IArena &arena) | |
| Initialize. | |
| bool | is_valid () |
| Check if the pipeline was successfully constructed. | |
| virtual sndio::DeviceType | type () const |
| Get device type. | |
| virtual sndio::DeviceState | state () const |
| Get device state. | |
| virtual void | pause () |
| Pause reading. | |
| virtual bool | resume () |
| Resume paused reading. | |
| 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 | has_latency () const |
| Check if the source supports latency reports. | |
| virtual bool | has_clock () const |
| Check if the sink has own clock. | |
| virtual void | reclock (core::nanoseconds_t timestamp) |
| Adjust source clock to match consumer clock. | |
| virtual bool | read (audio::Frame &) |
| Read frame. | |
Public Member Functions inherited from roc::core::ListNode | |
| ListNodeData * | list_node_data () const |
| Get list node data. | |
Transcoder source pipeline.
Definition at line 35 of file transcoder_source.h.
| roc::pipeline::TranscoderSource::TranscoderSource | ( | const TranscoderConfig & | config, |
| sndio::ISource & | input_source, | ||
| core::BufferFactory< audio::sample_t > & | buffer_factory, | ||
| core::IArena & | arena ) |
Initialize.
|
virtual |
Check if the sink has own clock.
Implements roc::sndio::IDevice.
|
virtual |
Check if the source supports latency reports.
Implements roc::sndio::IDevice.
| bool roc::pipeline::TranscoderSource::is_valid | ( | ) |
Check if the pipeline was successfully constructed.
|
virtual |
Get latency of the source.
Implements roc::sndio::IDevice.
|
virtual |
Pause reading.
Implements roc::sndio::IDevice.
|
virtual |
Read frame.
Implements roc::audio::IFrameReader.
|
virtual |
Adjust source clock to match consumer clock.
Implements roc::sndio::ISource.
|
virtual |
Restart reading from the beginning.
Implements roc::sndio::IDevice.
|
virtual |
Resume paused reading.
Implements roc::sndio::IDevice.
|
virtual |
Get sample specification of the source.
Implements roc::sndio::IDevice.
|
virtual |
Get device state.
Implements roc::sndio::IDevice.
|
virtual |
Get device type.
Implements roc::sndio::IDevice.