#include <output.h>
Definition at line 95 of file output.h.
virtual void output::flush |
( |
| ) |
|
|
pure virtual |
Flushes queued audio data. Called after seeking.
Implemented in output_impl.
virtual void output::force_play |
( |
| ) |
|
|
pure virtual |
Forces playback of queued data. Called when there's no more data to send, to prevent infinite waiting if output implementation starts actually playing after amount of data in internal buffer reaches some level.
Implemented in output_impl.
virtual double output::get_latency |
( |
| ) |
|
|
pure virtual |
Retrieves amount of audio data queued for playback, in seconds.
Implemented in output_impl.
virtual void output::pause |
( |
bool |
p_state | ) |
|
|
pure virtual |
virtual void output::process_samples |
( |
const audio_chunk & |
p_chunk | ) |
|
|
pure virtual |
Sends new samples to the device. Allowed to be called only when update() indicates that the device is ready.
Implemented in output_impl.
virtual void output::update |
( |
bool & |
p_ready | ) |
|
|
pure virtual |
Updates playback; queries whether the device is ready to receive new data.
- Parameters
-
p_ready | On success, receives value indicating whether the device is ready for next process_samples() call. |
Implemented in output_impl.
virtual void output::volume_set |
( |
double |
p_val | ) |
|
|
pure virtual |
Sets playback volume. Volume level in dB. Value of 0 indicates full ("100%") volume, negative values indciate different attenuation levels.
Implemented in output_impl.
The documentation for this class was generated from the following file: