|
MPD
0.17~git
|
Go to the source code of this file.
Data Structures | |
| struct | decoder_control |
Enumerations | |
| enum | decoder_state { DECODE_STATE_STOP = 0, DECODE_STATE_START, DECODE_STATE_DECODE, DECODE_STATE_ERROR } |
Functions | |
| G_GNUC_MALLOC struct decoder_control * | dc_new (GCond *client_cond) |
| void | dc_free (struct decoder_control *dc) |
| static void | decoder_lock (struct decoder_control *dc) |
| Locks the decoder_control object. | |
| static void | decoder_unlock (struct decoder_control *dc) |
| Unlocks the decoder_control object. | |
| static void | decoder_wait (struct decoder_control *dc) |
| Waits for a signal on the decoder_control object. | |
| static void | decoder_signal (struct decoder_control *dc) |
| Signals the decoder_control object. | |
| static bool | decoder_is_idle (const struct decoder_control *dc) |
| static bool | decoder_is_starting (const struct decoder_control *dc) |
| static bool | decoder_has_failed (const struct decoder_control *dc) |
| static bool | decoder_lock_is_idle (struct decoder_control *dc) |
| static bool | decoder_lock_is_starting (struct decoder_control *dc) |
| static bool | decoder_lock_has_failed (struct decoder_control *dc) |
| static struct song * | decoder_current_song (const struct decoder_control *dc) |
| void | dc_start (struct decoder_control *dc, struct song *song, unsigned start_ms, unsigned end_ms, struct music_buffer *buffer, struct music_pipe *pipe) |
| Start the decoder. | |
| void | dc_stop (struct decoder_control *dc) |
| bool | dc_seek (struct decoder_control *dc, double where) |
| void | dc_quit (struct decoder_control *dc) |
| void | dc_mixramp_start (struct decoder_control *dc, char *mixramp_start) |
| void | dc_mixramp_end (struct decoder_control *dc, char *mixramp_end) |
| void | dc_mixramp_prev_end (struct decoder_control *dc, char *mixramp_prev_end) |
| enum decoder_state |
Definition at line 30 of file decoder_control.h.
| void dc_free | ( | struct decoder_control * | dc | ) |
| void dc_mixramp_end | ( | struct decoder_control * | dc, |
| char * | mixramp_end | ||
| ) |
| void dc_mixramp_prev_end | ( | struct decoder_control * | dc, |
| char * | mixramp_prev_end | ||
| ) |
| void dc_mixramp_start | ( | struct decoder_control * | dc, |
| char * | mixramp_start | ||
| ) |
| G_GNUC_MALLOC struct decoder_control* dc_new | ( | GCond * | client_cond | ) | [read] |
| void dc_quit | ( | struct decoder_control * | dc | ) |
| bool dc_seek | ( | struct decoder_control * | dc, |
| double | where | ||
| ) |
| void dc_start | ( | struct decoder_control * | dc, |
| struct song * | song, | ||
| unsigned | start_ms, | ||
| unsigned | end_ms, | ||
| struct music_buffer * | buffer, | ||
| struct music_pipe * | pipe | ||
| ) |
Start the decoder.
| the | decoder |
| song | the song to be decoded |
| start_ms | see decoder_control |
| end_ms | see decoder_control |
| pipe | the pipe which receives the decoded chunks (owned by the caller) |
| void dc_stop | ( | struct decoder_control * | dc | ) |
| static struct song* decoder_current_song | ( | const struct decoder_control * | dc | ) | [static, read] |
Definition at line 228 of file decoder_control.h.
| static bool decoder_has_failed | ( | const struct decoder_control * | dc | ) | [inline, static] |
Definition at line 184 of file decoder_control.h.
| static bool decoder_is_idle | ( | const struct decoder_control * | dc | ) | [inline, static] |
Definition at line 171 of file decoder_control.h.
| static bool decoder_is_starting | ( | const struct decoder_control * | dc | ) | [inline, static] |
Definition at line 178 of file decoder_control.h.
| static void decoder_lock | ( | struct decoder_control * | dc | ) | [inline, static] |
Locks the decoder_control object.
Definition at line 134 of file decoder_control.h.
| static bool decoder_lock_has_failed | ( | struct decoder_control * | dc | ) | [inline, static] |
Definition at line 216 of file decoder_control.h.
| static bool decoder_lock_is_idle | ( | struct decoder_control * | dc | ) | [inline, static] |
Definition at line 192 of file decoder_control.h.
| static bool decoder_lock_is_starting | ( | struct decoder_control * | dc | ) | [inline, static] |
Definition at line 204 of file decoder_control.h.
| static void decoder_signal | ( | struct decoder_control * | dc | ) | [inline, static] |
Signals the decoder_control object.
This function is only valid in the player thread. The object should be locked prior to calling this function.
Definition at line 165 of file decoder_control.h.
| static void decoder_unlock | ( | struct decoder_control * | dc | ) | [inline, static] |
Unlocks the decoder_control object.
Definition at line 143 of file decoder_control.h.
| static void decoder_wait | ( | struct decoder_control * | dc | ) | [inline, static] |
Waits for a signal on the decoder_control object.
This function is only valid in the decoder thread. The object must be locked prior to calling this function.
Definition at line 154 of file decoder_control.h.
1.7.6.1