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

Defines

#define DECODE_TYPE_FILE   0
#define DECODE_TYPE_URL   1

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


Define Documentation

#define DECODE_TYPE_FILE   0

Definition at line 29 of file decoder_control.h.

#define DECODE_TYPE_URL   1

Definition at line 30 of file decoder_control.h.


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 32 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 104 of file decoder_control.h.

static bool decoder_has_failed ( void   )  [inline, static]

Definition at line 96 of file decoder_control.h.

static bool decoder_is_idle ( void   )  [inline, static]

Definition at line 83 of file decoder_control.h.

static bool decoder_is_starting ( void   )  [inline, static]

Definition at line 90 of file decoder_control.h.


Variable Documentation


Generated on Thu Sep 3 02:29:41 2009 for MPD by  doxygen 1.5.9