src/decoder_control.h File Reference

#include "decoder_command.h"
#include "audio_format.h"
#include "notify.h"
#include <assert.h>

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

void dc_init (void)
void dc_deinit (void)
static bool decoder_is_idle (void)
static bool decoder_is_starting (void)
static bool decoder_has_failed (void)
static struct songdecoder_current_song (void)
void dc_command_wait (struct notify *notify)
void dc_start (struct notify *notify, struct song *song)
void dc_start_async (struct song *song)
void dc_stop (struct notify *notify)
bool dc_seek (struct notify *notify, double where)
void dc_quit (void)

Variables

struct decoder_control dc


Enumeration Type Documentation

Enumerator:
DECODE_STATE_STOP 
DECODE_STATE_START 
DECODE_STATE_DECODE 
DECODE_STATE_ERROR  The last "START" command failed, because there was an I/O error or because no decoder was able to decode the file.

This state will only come after START; once the state has turned to DECODE, by definition no such error can occur.

Definition at line 29 of file decoder_control.h.


Function Documentation

void dc_command_wait ( struct notify notify  ) 

void dc_deinit ( void   ) 

void dc_init ( void   ) 

void dc_quit ( void   ) 

bool dc_seek ( struct notify notify,
double  where 
)

void dc_start ( struct notify notify,
struct song song 
)

void dc_start_async ( struct song song  ) 

void dc_stop ( struct notify notify  ) 

static struct song* decoder_current_song ( void   )  [static, read]

Definition at line 101 of file decoder_control.h.

static bool decoder_has_failed ( void   )  [inline, static]

Definition at line 93 of file decoder_control.h.

static bool decoder_is_idle ( void   )  [inline, static]

Definition at line 80 of file decoder_control.h.

static bool decoder_is_starting ( void   )  [inline, static]

Definition at line 87 of file decoder_control.h.


Variable Documentation


Generated on Tue Aug 24 22:29:31 2010 for MPD by  doxygen 1.5.7.1