aboutsummaryrefslogtreecommitdiffstats
path: root/src/player/Control.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-11-11player/Control: Seek*() returns Error informationMax Kellermann1-2/+2
2015-11-11player/Control: use class ScopeLockMax Kellermann1-14/+7
2015-11-11player/Control: move code to ClearError()Max Kellermann1-0/+5
2015-11-11player/Control: move code to SeekLocked()Max Kellermann1-0/+2
2015-11-11player/Control: add Lock prefix to locking method namesMax Kellermann1-10/+10
2015-11-05player/Thread: move player_command_finished() to PlayerControlMax Kellermann1-0/+6
2015-11-05player/Control: initialize seek_time in EnqueueSongLocked()Max Kellermann1-0/+1
Allows removing a few special cases in the player thread.
2015-08-15PlayerThread, ...: move to src/player/Max Kellermann1-0/+0
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-08-30PlayerControl: make settings "const"Max Kellermann1-2/+2
2014-08-30PlayerControl: update include guardMax Kellermann1-2/+2
2014-08-29PlayerThread: use SongTime for elapsed_timeMax Kellermann1-2/+2
2014-08-29PlayerControl: use SignedSongTime for the song durationMax Kellermann1-2/+2
2014-08-27PlayerControl: use std::chrono::duration for Seek()Max Kellermann1-2/+3
2014-02-21PlayerListener: new interface to replace GlobalEvents accessMax Kellermann1-3/+7
2014-01-28output: rename struct audio_output to AudioOutputMax Kellermann1-1/+1
2014-01-28OutputAll: convert to class, move instance to class PartitionMax Kellermann1-1/+5
Another big chunk of code for multi-player support.
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-09DetachedSong: fork of struct SongMax Kellermann1-18/+18
From now on, struct Song will be used by the database only, and DetachedSong will be used by everybody else. DetachedSong is easier to use, but Song has lower overhead.
2013-10-30*: update copyright year to 2013Max Kellermann1-1/+1
2013-10-29PlayerControl: move attributes to struct CrossFadeSettingsMax Kellermann1-6/+7
2013-10-28player_control: rename to PlayerControlMax Kellermann1-7/+7
2013-10-22Playlist: copy stream tags from the PlayerThreadMax Kellermann1-1/+42
Finally restores an important feature that has been broken for several months when the PlayerThread started working with Song copies instead of pointers to the Queue's Song instances (commit e96779d).
2013-10-17PlayerControl: GetError() returns an Error, not a char*Max Kellermann1-5/+23
2013-10-17Thread/Thread: replacement library for GThreadMax Kellermann1-8/+8
2013-09-27PlayerControl: use strictly typed enumsMax Kellermann1-38/+37
2013-09-27PlayerControl: convert functions to methodsMax Kellermann1-0/+55
2013-09-27PlayerThread: move code to player_control::CommandFinished()Max Kellermann1-0/+14
2013-09-04util/Error: new error passing libraryMax Kellermann1-4/+4
Replaces GLib's GError.
2013-08-03audio_format: convert to C++Max Kellermann1-3/+3
2013-07-28song: convert header to C++Max Kellermann1-4/+5
2013-01-25PlayerControl: add second Cond objectMax Kellermann1-0/+32
This fixes a deadlock bug introduced by 18076ac9. After all, the second Cond was necessary. The problem: two threads can wait for a signal at the same time. The player thread waits for the output thread to finish playback. The main thread waits for the player thread to complete a command. The output thread finishes playback, and sends a signal, which unfortunately does not wake up the player thread, but the main thread. The main thread sees that the command is still not finished, and waits again. The signal is lost forever, and MPD is deadlocked.
2013-01-20PlayerControl: move functions into the classMax Kellermann1-167/+121
2013-01-10PlayerControl: switch to the Mutex/Cond classesMax Kellermann1-6/+8
2013-01-04PlayerControl: add constructor and destructorMax Kellermann1-6/+4
2013-01-04player_control.h: convert header to C++Max Kellermann1-0/+0
2012-08-25player_thread: disable cross-fading in "single" modeMax Kellermann1-0/+15
This commit reimplements the core of the "single" mode. Instead of doing the detection in the playlist code from the outside, it is moved to the player thread, which gets a new option called "border_pause". It will now pause playback exactly at the beginning of the new song, making the feature more reliable. Now that the player thread knows what will happen, it can suppress cross-fading. Fixes mantis tickets 0003055 and 0003166.
2012-08-15player_control: duplicate the song objectMax Kellermann1-0/+18
Make sure the player "owns" the next_song object, so nobody else can free it.
2012-08-08player_control: add GError attributeMax Kellermann1-9/+21
Rewrite of the pc_get_error_message() function, now using a GError object instead of the complicated "errored_song" attribute.
2012-08-08player_control: rename attribute "error" to "error_type"Max Kellermann1-3/+5
2012-08-08player_control: rename player_error enum valuesMax Kellermann1-3/+11
2012-08-08player_control: remove unused enum player_error valuesMax Kellermann1-3/+0
2012-08-08player_control: inline trivial functionsMax Kellermann1-10/+25
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10include cleanupMax Kellermann1-1/+2
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-39/+40
Allocate a player_control object where needed, and pass it around. Each "client" object is associated with a "player_control" instance. This prepares multi-player support.
2010-03-21Add support for MixRamp tagsTim Phipps1-0/+14
Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-11-09player_control: removed the "volatile" attributeMax Kellermann1-2/+2
Our use of the "volatile" keyword was wrong from the start, and now that we have proper locking, we can safely remove all of them.
2009-11-03decoder_control: make the song objects constMax Kellermann1-1/+1
They are just informational.