aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_control.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-11-08decoder: converted dc.error to a dc.state valueMax Kellermann1-5/+3
The player did not care about the exact error value, it only checked whether an error has occured. This could fit well into decoder_control.state - introduce a new state "DECODE_STATE_ERROR".
2008-11-03decoder: no CamelCaseMax Kellermann1-3/+3
Renamed variables and functions.
2008-10-30decoder: use bool for return values and flagsMax Kellermann1-5/+5
Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
2008-10-08don't include os_compat.hMax Kellermann1-0/+2
When there are standardized headers, use these instead of the bloated os_compat.h.
2008-10-08notify: removed the "Notify" typedefMax Kellermann1-5/+9
Typedefs shouldn't be used, use the bare struct names instead.
2008-10-08song: converted typedef Song to struct songMax Kellermann1-2/+4
Again, a data type which can be forward-declared.
2008-09-24notify: added notify_deinit()Max Kellermann1-0/+5
Destroy the mutex when it is not used anymore.
2008-08-26moved code to pc_init(), dc_init()Max Kellermann1-0/+8
2008-08-26renamed decode.h to decoder_control.hMax Kellermann1-1/+1
2008-08-26moved variable "dc" to decode.hMax Kellermann1-1/+2
Now that "dc" is available here, we don't have to pass it to decoder_is_idle() and decoder_is_starting() anymore.
2008-08-26added decoder_control.cMax Kellermann1-0/+82
The source "decoder_control.c" provides an API for controlling the decoder. This replaces various direct accesses to the DecoderControl struct.