- 21 Mar, 2010 1 commit
-
-
Tim Phipps authored
Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
-
- 01 Jan, 2010 1 commit
-
-
Avuton Olrich authored
-
- 12 Nov, 2009 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
-
- 03 Nov, 2009 1 commit
-
-
Max Kellermann authored
The assertion shouldn't access player_control.next_song without locking it.
-
- 02 Nov, 2009 2 commits
-
-
Max Kellermann authored
Don't wake up the target thread in every iteration of the wait() loop. Waking it up once, right after the command has been set, must be enough.
-
Max Kellermann authored
These parameters must be protected with a mutex, too. Wrap everything inside player_lock()/player_unlock(), and use player_command_locked() instead of player_command().
-
- 31 Oct, 2009 2 commits
-
-
Max Kellermann authored
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
-
Max Kellermann authored
Use GMutex/GCond instead of the notify library. Manually lock the player_control object before accessing the protected attributes. Use the GCond object to notify the player thread and the main thread.
-
- 23 Oct, 2009 1 commit
-
-
Max Kellermann authored
With these methods, an output plugin can allocate some global resources only if it is actually enabled. The method enable() is called after daemonization, which allows for more sophisticated resource allocation during that method.
-
- 08 Oct, 2009 7 commits
-
-
Max Kellermann authored
Tracking the "elapsed" time from the chunks which we have sent to the output pipe is very imprecise: since we have implemented the music pipe, we're sending large number of chunks at once, giving the "elapsed" time stamp a resolution of usually more than a second. This patch changes the source of this information to the outputs. If a chunk has been played by all outputs, the "elapsed" time stamp is updated. The new command PLAYER_COMMAND_REFRESH makes the player thread update its status information: it tells the outputs to update the chunk time stamp. After that, player_control.elapsed_time is current.
-
Max Kellermann authored
Sending PLAYER_COMMAND_STOP followed by PLAYER_COMMAND_QUEUE does the same. PLAYER_COMMAND_PLAY is redundant.
-
Max Kellermann authored
After some of the commands, the player thread must have reset the pc.next_song attribute.
-
Max Kellermann authored
-
Max Kellermann authored
Without the player error code, it errored_song variable is not used, and should be cleared, to avoid invalid access in pc_song_deleted().
-
Max Kellermann authored
The new player_status struct replaces a bunch of playerGetX() functions. When we add proper locking to the player_control struct, we will only need to lock once for the "status" command.
-
Max Kellermann authored
This lets us eliminate the static fixed-size buffer.
-
- 06 Jul, 2009 1 commit
-
-
Max Kellermann authored
Do all the software volume stuff inside each output thread, not in the player thread. This allows one software mixer per output device, and also allows the user to configure the mixer type (hardware or software) for each audio output. This moves the global "mixer_type" setting into the "audio_output" section, deprecating the "mixer_enabled" flag.
-
- 06 May, 2009 3 commits
-
-
Max Kellermann authored
The player thread must reset pc.next_song after seeking, even if that operation has failed. This patch adds an assertion.
-
Max Kellermann authored
The only pc_seek() caller clears the error, rendering the check useless. Even if the previous PLAY command resulted in a player error, this check is not very useful.
-
Max Kellermann authored
Renamed playerSeek() to pc_seek() to get rid of CamelCase. Convert the return value to bool.
-
- 30 Mar, 2009 1 commit
-
-
Avuton Olrich authored
-
- 13 Mar, 2009 1 commit
-
-
Avuton Olrich authored
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
-
- 05 Mar, 2009 1 commit
-
-
Max Kellermann authored
Turn the music_pipe into a simple music_chunk queue. The music_chunk allocation code is moved to music_buffer, and is now managed with a linked list instead of a ring buffer. Two separate music_pipe objects are used by the decoder for the "current" and the "next" song, which greatly simplifies the cross-fading code.
-
- 10 Feb, 2009 1 commit
-
-
Max Kellermann authored
Assertions on pc.command and pc.next_song.
-
- 29 Jan, 2009 1 commit
-
-
Max Kellermann authored
When the playlist is cleared, pc.errored_song is also cleared. This causes pc_errored_song_uri() to crash, because it assumes that pc.errored_song is set. Reset pc.error to fix that assumption.
-
- 25 Jan, 2009 1 commit
-
-
Max Kellermann authored
player_control.thread contains the handle of the player thread, or NULL if the player thread isn't running.
-
- 07 Jan, 2009 1 commit
-
-
Max Kellermann authored
Moved the software volume code to a separate library.
-
- 04 Jan, 2009 1 commit
-
-
Max Kellermann authored
-
- 02 Jan, 2009 1 commit
-
-
Max Kellermann authored
There is only one location using PIPE_EVENT_SIGNAL: to synchronize player_command() with player_command_finished(). Use the "notify" library instead of the event_pipe here.
-
- 01 Jan, 2009 2 commits
-
-
Max Kellermann authored
Continuing the previous patch.
-
Max Kellermann authored
We are going to migrate away from the concept of notifying the main thread. There should be events sent to it instead. This patch starts a series to implement that.
-
- 29 Dec, 2008 1 commit
-
-
Max Kellermann authored
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
-
- 17 Dec, 2008 2 commits
-
-
Max Kellermann authored
getPlayerErrorStr() assumes that pc.errored_song is set when an error occured. Since the song may have been deleted meanwhile, add a NULL check.
-
Max Kellermann authored
When a (remote) song is deleted from the playlist, there may still be a reference to it in pc.errored_song. Clear this reference.
-
- 11 Nov, 2008 1 commit
-
-
Max Kellermann authored
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.
-
- 03 Nov, 2008 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Renamed variables and internal functions. Most of the player_control.h API remains in CamelCase for now.
-
- 14 Oct, 2008 1 commit
-
-
Max Kellermann authored
"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.
-
- 11 Oct, 2008 1 commit
-
-
Max Kellermann authored
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.
-