#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 song * | decoder_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 |
enum decoder_state |
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.
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_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.
struct decoder_control dc |