aboutsummaryrefslogtreecommitdiffstats
path: root/src/player_control.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* player: removed "volatile" attributesMax Kellermann2008-11-031-6/+6
| | | | | Removed the "volatile" attributes from several variables which are not important for synchronization.
* player: no CamelCaseMax Kellermann2008-11-031-7/+7
| | | | | Renamed variables and internal functions. Most of the player_control.h API remains in CamelCase for now.
* added prefix to header macrosMax Kellermann2008-10-311-2/+2
| | | | | | | "LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
* player: added commands QUEUE and CANCELMax Kellermann2008-10-121-42/+15
| | | | | | 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 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-5/+5
| | | | | player_get_audio_format() replaces getPlayerSampleRate(), getPlayerBits(), getPlayerChannels().
* player: added player_control.audio_formatMax Kellermann2008-10-101-5/+4
| | | | This replaces the attributes bits, channels, sampleRate.
* don't include os_compat.hMax Kellermann2008-10-081-1/+2
| | | | | When there are standardized headers, use these instead of the bloated os_compat.h.
* notify: removed the "Notify" typedefMax Kellermann2008-10-081-1/+1
| | | | Typedefs shouldn't be used, use the bare struct names instead.
* song: converted typedef Song to struct songMax Kellermann2008-10-081-7/+10
| | | | Again, a data type which can be forward-declared.
* assume stdint.h and stddef.h are availableMax Kellermann2008-09-291-1/+0
| | | | | | Since we use a C99 compiler now, we can assert that the C99 standard headers are available, no need for complicated compile time checks. Kill mpd_types.h.
* switch to C99 types, part IIMax Kellermann2008-09-291-7/+7
| | | | | Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch.
* notify: added notify_deinit()Max Kellermann2008-09-241-0/+2
| | | | Destroy the mutex when it is not used anymore.
* moved player_command_finished() to player_thread.cMax Kellermann2008-08-261-2/+0
|
* moved code to pc_init(), dc_init()Max Kellermann2008-08-261-0/+4
|
* renamed player.c to player_control.cMax Kellermann2008-08-261-0/+162
Give player.c a better name, meaning that the code is used to control the player thread.