aboutsummaryrefslogtreecommitdiff
path: root/src/player_control.c
Commit message (Collapse)AuthorAge
* player_control: check if errored_song is setMax Kellermann2008-12-17
| | | | | | getPlayerErrorStr() assumes that pc.errored_song is set when an error occured. Since the song may have been deleted meanwhile, add a NULL check.
* playlist: clear pc.errored_song on deleteMax Kellermann2008-12-17
| | | | | When a (remote) song is deleted from the playlist, there may still be a reference to it in pc.errored_song. Clear this reference.
* pcm_volume: added constant PCM_VOLUME_1Max Kellermann2008-11-11
| | | | | | | It may be desirable to change the range of integer volume levels (e.g. to 1024, which may utilize shifts instead of expensive integer divisions). Introduce the constant PCM_VOLUME_1 which describes the integer value for "100% volume". This is currently 1000.
* player: converted PLAYER_ERROR_* to enumMax Kellermann2008-11-03
|
* player: no CamelCaseMax Kellermann2008-11-03
| | | | | Renamed variables and internal functions. Most of the player_control.h API remains in CamelCase for now.
* command: added command "idle"Max Kellermann2008-10-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-12
| | | | | | 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-11
| | | | | set_current_song() is an internal function and consists of only one assignment. Eliminate it.
* player: removed player_control.fileTimeMax Kellermann2008-10-11
| | | | | | | 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-10
| | | | | player_get_audio_format() replaces getPlayerSampleRate(), getPlayerBits(), getPlayerChannels().
* player: added player_control.audio_formatMax Kellermann2008-10-10
| | | | This replaces the attributes bits, channels, sampleRate.
* song: removed CamelCaseMax Kellermann2008-10-08
| | | | CamelCase is ugly... rename all functions.
* song: converted typedef Song to struct songMax Kellermann2008-10-08
| | | | Again, a data type which can be forward-declared.
* notify: added notify_deinit()Max Kellermann2008-09-24
| | | | Destroy the mutex when it is not used anymore.
* include cleanupMax Kellermann2008-09-06
| | | | As usual, include only headers which are really needed.
* moved player_command_finished() to player_thread.cMax Kellermann2008-08-26
|
* moved code to pc_init(), dc_init()Max Kellermann2008-08-26
|
* renamed player.c to player_control.cMax Kellermann2008-08-26
| | | | | 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-26
This is the last of the three variables. Now we don't need playerData.h anymore in most sources.