decoder_control Struct Reference

#include <decoder_control.h>

Data Fields

GThread * thread
 the handle of the decoder thread, or NULL if the decoder thread isn't running
GMutex * mutex
 This lock protects state and command.
GCond * cond
 Trigger this object after you have modified command.
GCond * client_cond
 The trigger of this object's client.
enum decoder_state state
enum decoder_command command
bool quit
bool seek_error
bool seekable
double seek_where
struct audio_format in_audio_format
 the format of the song file
struct audio_format out_audio_format
 the format being sent to the music pipe
struct songsong
 The song currently being decoded.
unsigned start_ms
 The initial seek position (in milliseconds), e.g.
unsigned end_ms
 The decoder will stop when it reaches this position (in milliseconds).
float total_time
struct music_buffer * buffer
 the music_chunk allocator
struct music_pipe * pipe
 The destination pipe for decoded chunks.
float replay_gain_db
float replay_gain_prev_db
char * mixramp_start
char * mixramp_end
char * mixramp_prev_end

Detailed Description

Definition at line 44 of file decoder_control.h.


Field Documentation

struct music_buffer* decoder_control::buffer [read]

the music_chunk allocator

Definition at line 108 of file decoder_control.h.

The trigger of this object's client.

It is signalled whenever an event occurs.

Definition at line 65 of file decoder_control.h.

Definition at line 68 of file decoder_control.h.

Trigger this object after you have modified command.

This is also used by the decoder thread to notify the caller when it has finished a command.

Definition at line 59 of file decoder_control.h.

The decoder will stop when it reaches this position (in milliseconds).

0 means don't stop before the end of the file.

This attribute is set by dc_start().

Definition at line 103 of file decoder_control.h.

the format of the song file

Definition at line 76 of file decoder_control.h.

Definition at line 119 of file decoder_control.h.

Definition at line 120 of file decoder_control.h.

Definition at line 118 of file decoder_control.h.

This lock protects state and command.

Definition at line 52 of file decoder_control.h.

the format being sent to the music pipe

Definition at line 79 of file decoder_control.h.

struct music_pipe* decoder_control::pipe [read]

The destination pipe for decoded chunks.

The caller thread owns this object, and is responsible for freeing it.

Definition at line 114 of file decoder_control.h.

Definition at line 70 of file decoder_control.h.

Definition at line 116 of file decoder_control.h.

Definition at line 117 of file decoder_control.h.

Definition at line 71 of file decoder_control.h.

Definition at line 73 of file decoder_control.h.

Definition at line 72 of file decoder_control.h.

struct song* decoder_control::song [read]

The song currently being decoded.

This attribute is set by the player thread, when it sends the DECODE_COMMAND_START command.

Definition at line 86 of file decoder_control.h.

The initial seek position (in milliseconds), e.g.

to the start of a sub-track described by a CUE file.

This attribute is set by dc_start().

Definition at line 94 of file decoder_control.h.

Definition at line 67 of file decoder_control.h.

the handle of the decoder thread, or NULL if the decoder thread isn't running

Definition at line 47 of file decoder_control.h.

Definition at line 105 of file decoder_control.h.


The documentation for this struct was generated from the following file:

Generated on 9 Aug 2013 for MPD by  doxygen 1.6.1