aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_internal.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* decoder_*: convert to C++Max Kellermann2013-01-041-96/+0
|
* decoder_internal: don't call input_stream_buffer()Max Kellermann2011-09-141-28/+4
| | | | | | This is not necessary since all relevant input plugins have been moved to the I/O thread, and there is no remaining useful buffer() implementation. This also fixes a busy loop when playing radio.
* copyright year 2011Max Kellermann2011-01-291-1/+1
|
* decoder_control: store GCond object, not a player_controlMax Kellermann2011-01-101-2/+1
| | | | | | Remove the decoder dependency on player_control. All player_control was needed for is to signal the player thread, and we can do that with a simple GCond as well.
* player_control: removed the global variable "pc"Max Kellermann2011-01-101-1/+1
| | | | | | | 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.
* replay_gain: reimplement as a filter pluginMax Kellermann2010-02-171-1/+8
| | | | | | | Apply the replay gain in the output thread. This means a new setting will be active instantly, without going through the whole music pipe. And we might have different replay gain settings for each audio output device.
* Update copyright notices.Avuton Olrich2009-12-311-1/+1
|
* input_stream: return errors with GErrorMax Kellermann2009-12-151-1/+7
|
* decoder_internal: decoder_input_buffer() returns boolMax Kellermann2009-12-151-4/+4
| | | | | | This fixes a regression: a boolean value was returned from decoder_input_buffer(), but the caller chose to do a "<= 0" comparison.
* include config.h in all sourcesMax Kellermann2009-11-121-0/+1
| | | | | | 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.
* decoder_control: removed the global variable "dc"Max Kellermann2009-10-311-16/+19
| | | | | Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
* player_control: protect command, state, error with a mutexMax Kellermann2009-10-311-4/+1
| | | | | | 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.
* decoder_control: protect command, state with a mutexMax Kellermann2009-08-131-2/+25
| | | | | | Replace decoder_control.notify with decoder_control.mutex and decoder_control.cond. Lock the mutex on all accesses to decoder_control.command and decoder_control.state.
* all: Update copyright header.Avuton Olrich2009-03-131-3/+4
| | | | | | | | 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.
* decoder_internal: don't push empty chunk into pipeMax Kellermann2009-03-071-1/+6
| | | | | | When the decoder chunk is empty in decoder_flush_chunk(), don't push it into the music pipe - return it to the music buffer instead. An empty chunk in the pipe wastes resources for no advantage.
* pipe: added music_buffer, rewrite music_pipeMax Kellermann2009-03-061-19/+17
| | | | | | | | 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.
* music_pipe: added music_pipe_push()Max Kellermann2009-03-061-0/+80
Added music_pipe_allocate(), music_pipe_push() and music_pipe_cancel(). Those functions allow the caller (decoder thread in this case) to do its own chunk management. The functions music_pipe_flush() and music_pipe_tag() can now be removed.