aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* player: no CamelCaseMax Kellermann2008-11-031-10/+10
| | | | | Renamed variables and internal functions. Most of the player_control.h API remains in CamelCase for now.
* command: added command "idle"Max Kellermann2008-10-141-1/+14
| | | | | | "idle" waits until something noteworthy happens on the server, e.g. song change, playlist modified, database updated. This allows clients to keep up to date without polling.
* player: added commands QUEUE and CANCELMax Kellermann2008-10-121-39/+7
| | | | | | QUEUE adds a new song to the player's queue. CANCEL clears the queue. These two commands replace the old and complex queueState and queueLockState code.
* player: removed set_current_song()Max Kellermann2008-10-111-13/+5
| | | | | set_current_song() is an internal function and consists of only one assignment. Eliminate it.
* player: removed player_control.fileTimeMax Kellermann2008-10-111-1/+0
| | | | | | | This variable is superfluous, it is only used to copy its value to player_control.totalTime. Since the original source of this value (song->tag->time) will still be available at this point, we can safely remove fileTime.
* player: added player_get_audio_format()Max Kellermann2008-10-101-15/+0
| | | | | player_get_audio_format() replaces getPlayerSampleRate(), getPlayerBits(), getPlayerChannels().
* player: added player_control.audio_formatMax Kellermann2008-10-101-5/+5
| | | | This replaces the attributes bits, channels, sampleRate.
* song: removed CamelCaseMax Kellermann2008-10-081-3/+3
| | | | CamelCase is ugly... rename all functions.
* song: converted typedef Song to struct songMax Kellermann2008-10-081-5/+11
| | | | Again, a data type which can be forward-declared.
* notify: added notify_deinit()Max Kellermann2008-09-241-0/+5
| | | | Destroy the mutex when it is not used anymore.
* include cleanupMax Kellermann2008-09-061-1/+1
| | | | As usual, include only headers which are really needed.
* moved player_command_finished() to player_thread.cMax Kellermann2008-08-261-8/+0
|
* moved code to pc_init(), dc_init()Max Kellermann2008-08-261-0/+13
|
* renamed player.c to player_control.cMax Kellermann2008-08-261-1/+241
| | | | | Give player.c a better name, meaning that the code is used to control the player thread.
* moved global variable "pc" to player.hMax Kellermann2008-08-261-0/+21
This is the last of the three variables. Now we don't need playerData.h anymore in most sources.