audio_output Struct Reference

#include <output_internal.h>

Data Fields

const char * name
 The device's configured display name.
struct audio_output_pluginplugin
 The plugin which implements this output device.
void * data
 The plugin's internal data.
struct mixermixer
 The mixer object associated with this audio output device.
bool config_audio_format
 This flag is true, when the audio_format of this device is configured in mpd.conf.
bool enabled
 Has the user enabled this device?
bool open
 Is the device (already) open and functional?
bool pause
 Is the device paused? i.e.
GTimer * fail_timer
 If not NULL, the device has failed, and this timer is used to estimate how long it should stay disabled (unless explicitly reopened with "play").
struct audio_format in_audio_format
 The audio_format in which audio data is received from the player thread (which in turn receives it from the decoder).
struct audio_format out_audio_format
 The audio_format which is really sent to the device.
struct pcm_convert_state convert_state
GThread * thread
 The thread handle, or NULL if the output thread isn't running.
struct notify notify
 Notify object for the thread.
enum audio_output_command command
 The next command to be performed by the output thread.
struct music_pipe * pipe
 The music pipe which provides music chunks to be played.
GMutex * mutex
 This mutex protects open, chunk and chunk_finished.
struct music_chunkchunk
 The music_chunk which is currently being played.
bool chunk_finished
 Has the output finished playing chunk?

Detailed Description

Definition at line 38 of file output_internal.h.


Field Documentation

The music_chunk which is currently being played.

All chunks before this one may be returned to the music_buffer, because they are not going to be used by this output anymore.

Definition at line 144 of file output_internal.h.

Has the output finished playing chunk?

Definition at line 149 of file output_internal.h.

The next command to be performed by the output thread.

Definition at line 126 of file output_internal.h.

This flag is true, when the audio_format of this device is configured in mpd.conf.

Definition at line 66 of file output_internal.h.

Definition at line 110 of file output_internal.h.

The plugin's internal data.

It is passed to every plugin method.

Definition at line 53 of file output_internal.h.

Has the user enabled this device?

Definition at line 71 of file output_internal.h.

If not NULL, the device has failed, and this timer is used to estimate how long it should stay disabled (unless explicitly reopened with "play").

Definition at line 94 of file output_internal.h.

The audio_format in which audio data is received from the player thread (which in turn receives it from the decoder).

Definition at line 100 of file output_internal.h.

The mixer object associated with this audio output device.

May be NULL if none is available, or if software volume is configured.

Definition at line 60 of file output_internal.h.

This mutex protects open, chunk and chunk_finished.

Definition at line 136 of file output_internal.h.

const char* audio_output::name

The device's configured display name.

Definition at line 42 of file output_internal.h.

Notify object for the thread.

Definition at line 121 of file output_internal.h.

Is the device (already) open and functional?

This attribute may only be modified by the output thread. It is protected with mutex: write accesses inside the output thread and read accesses outside of it may only be performed while the lock is held.

Definition at line 81 of file output_internal.h.

The audio_format which is really sent to the device.

This is basically config_audio_format (if configured) or in_audio_format, but may have been modified by plugin->open().

Definition at line 108 of file output_internal.h.

Is the device paused? i.e.

the output thread is in the ao_pause() loop.

Definition at line 87 of file output_internal.h.

struct music_pipe* audio_output::pipe

The music pipe which provides music chunks to be played.

Definition at line 131 of file output_internal.h.

The plugin which implements this output device.

Definition at line 47 of file output_internal.h.

The thread handle, or NULL if the output thread isn't running.

Definition at line 116 of file output_internal.h.


The documentation for this struct was generated from the following file:
Generated on Sun May 2 21:28:32 2010 for MPD by  doxygen 1.6.3