|
Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
|
#include <watchdog.h>
Public Member Functions | |
| Watchdog (IFrameReader &reader, const audio::SampleSpec &sample_spec, const WatchdogConfig &config, core::IArena &arena) | |
| Initialize. | |
| bool | is_valid () const |
| Check if object is successfully constructed. | |
| bool | is_alive () const |
| Check if stream is still alive. | |
| virtual bool | read (Frame &frame) |
| Read audio frame. | |
Public Member Functions inherited from roc::core::ListNode | |
| ListNodeData * | list_node_data () const |
| Get list node data. | |
Definition at line 78 of file watchdog.h.
| roc::audio::Watchdog::Watchdog | ( | IFrameReader & | reader, |
| const audio::SampleSpec & | sample_spec, | ||
| const WatchdogConfig & | config, | ||
| core::IArena & | arena ) |
Initialize.
| bool roc::audio::Watchdog::is_alive | ( | ) | const |
Check if stream is still alive.
| bool roc::audio::Watchdog::is_valid | ( | ) | const |
Check if object is successfully constructed.
|
virtual |
Read audio frame.
Implements roc::audio::IFrameReader.