12 #ifndef ROC_SNDIO_SNDFILE_SINK_H_
13 #define ROC_SNDIO_SNDFILE_SINK_H_
51 bool open(
const char* driver,
const char* path);
90 bool open_(
const char* driver,
const char* path);
Sample specification. Describes sample rate and channels.
Base class for non-copyable objects.
SndfileSink(core::IArena &arena, const Config &config)
Initialize.
virtual ISource * to_source()
Cast IDevice to ISink.
virtual bool has_clock() const
Check if the sink has own clock.
virtual bool restart()
Restart reading from the beginning.
virtual bool resume()
Resume paused reading.
bool is_valid() const
Check if the object was successfully constructed.
virtual DeviceState state() const
Get device state.
bool open(const char *driver, const char *path)
Open output file or device.
virtual core::nanoseconds_t latency() const
Get latency of the sink.
virtual DeviceType type() const
Get device type.
virtual void write(audio::Frame &frame)
Write audio frame.
virtual bool has_latency() const
Check if the sink supports latency reports.
virtual audio::SampleSpec sample_spec() const
Get sample specification of the sink.
virtual void pause()
Pause reading.
virtual ISink * to_sink()
Cast IDevice to ISink.
int64_t nanoseconds_t
Nanoseconds.
Commonly used types and functions.
Various units used in packets.