MPD 0.17~git
|
#include <glib.h>
#include <stddef.h>
#include <stdbool.h>
Go to the source code of this file.
Functions | |
static GQuark | audio_output_quark (void) |
void | audio_output_enable (struct audio_output *ao) |
Enables the device. | |
void | audio_output_disable (struct audio_output *ao) |
Disables the device. | |
bool | audio_output_update (struct audio_output *ao, const struct audio_format *audio_format, const struct music_pipe *mp) |
Opens or closes the device, depending on the "enabled" flag. | |
void | audio_output_play (struct audio_output *ao) |
void | audio_output_pause (struct audio_output *ao) |
void | audio_output_drain_async (struct audio_output *ao) |
void | audio_output_cancel (struct audio_output *ao) |
Clear the "allow_play" flag and send the "CANCEL" command asynchronously. | |
void | audio_output_allow_play (struct audio_output *ao) |
Set the "allow_play" and signal the thread. | |
void | audio_output_close (struct audio_output *ao) |
void | audio_output_release (struct audio_output *ao) |
Closes the audio output, but if the "always_on" flag is set, put it into pause mode instead. | |
void | audio_output_finish (struct audio_output *ao) |
void audio_output_allow_play | ( | struct audio_output * | ao | ) |
Set the "allow_play" and signal the thread.
void audio_output_cancel | ( | struct audio_output * | ao | ) |
Clear the "allow_play" flag and send the "CANCEL" command asynchronously.
To finish the operation, the caller has to call audio_output_allow_play().
void audio_output_close | ( | struct audio_output * | ao | ) |
void audio_output_disable | ( | struct audio_output * | ao | ) |
Disables the device.
void audio_output_drain_async | ( | struct audio_output * | ao | ) |
void audio_output_enable | ( | struct audio_output * | ao | ) |
Enables the device.
void audio_output_finish | ( | struct audio_output * | ao | ) |
void audio_output_pause | ( | struct audio_output * | ao | ) |
void audio_output_play | ( | struct audio_output * | ao | ) |
static GQuark audio_output_quark | ( | void | ) | [inline, static] |
Definition at line 35 of file output_control.h.
void audio_output_release | ( | struct audio_output * | ao | ) |
Closes the audio output, but if the "always_on" flag is set, put it into pause mode instead.
bool audio_output_update | ( | struct audio_output * | ao, |
const struct audio_format * | audio_format, | ||
const struct music_pipe * | mp | ||
) |
Opens or closes the device, depending on the "enabled" flag.