Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-08-12 | MusicChunk: rename struct to MusicChunk | Max Kellermann | 1 | -1/+1 | |
2014-01-24 | decoder/*: move to decoder/plugins/ | Max Kellermann | 1 | -0/+0 | |
2014-01-13 | copyright year 2014 | Max Kellermann | 1 | -1/+1 | |
2013-11-13 | PcmConvert: add methods Open(), Close() | Max Kellermann | 1 | -1/+5 | |
Replaces Reset() and eliminates the AudioFormat parameters from the Convert() method. | |||||
2013-11-13 | DecoderInternal: allocate PcmConvert dynamically | Max Kellermann | 1 | -0/+2 | |
Reduce header dependencies and allow it to be nullptr to disable it. | |||||
2013-11-13 | DecoderInternal: move functions into the class | Max Kellermann | 1 | -21/+16 | |
2013-11-08 | DecoderInternal: simplify need_chunks() | Max Kellermann | 1 | -11/+4 | |
Remove the "do_wait" parameter which is always true. Check only command==NONE and merge the "return" statements. | |||||
2013-11-08 | DecoderInternal: don't wake up player in need_chunks | Max Kellermann | 1 | -1/+0 | |
Nothing of interest happens here. No need to wake up the player. | |||||
2013-11-06 | DecoderControl: reduce the number of PlayerThread wakeups | Max Kellermann | 1 | -1/+2 | |
Wake up the PlayerThread only if it is really waiting for the decoder. This greatly reduces the number of system calls in the DecoderThread. | |||||
2013-11-06 | DecoderInternal: lock DecoderControl in _flush_chunk() | Max Kellermann | 1 | -0/+2 | |
Must hold the Mutex to signal the Cond object safely. | |||||
2013-11-06 | DecoderInternal: wake up the player thread in _flush_chunk() | Max Kellermann | 1 | -0/+2 | |
Merge duplicate code. | |||||
2013-10-28 | decoder_control: rename to DecoderControl | Max Kellermann | 1 | -3/+3 | |
2013-10-21 | decoder: rename the struct to "Decoder" | Max Kellermann | 1 | -24/+21 | |
2013-10-19 | *: use references instead of pointers | Max Kellermann | 1 | -14/+14 | |
2013-10-19 | *: use nullptr instead of NULL | Max Kellermann | 1 | -7/+7 | |
2013-09-27 | DecoderCommand: convert to strictly-typed enum | Max Kellermann | 1 | -6/+6 | |
2013-09-26 | MusicBuffer: expose the C++ API | Max Kellermann | 1 | -2/+2 | |
2013-09-26 | MusicPipe: expose the C++ API | Max Kellermann | 1 | -1/+1 | |
2013-09-05 | Tag, ...: move to libtag.a | Max Kellermann | 1 | -1/+1 | |
2013-07-30 | tag: convert to C++ | Max Kellermann | 1 | -9/+4 | |
2013-01-31 | pcm_convert: convert to C++ | Max Kellermann | 1 | -2/+0 | |
2013-01-27 | DecoderControl, InputStream: use Mutex/Cond instead of GMutex/GCond | Max Kellermann | 1 | -1/+1 | |
2013-01-26 | input_stream: forward-declare the struct | Max Kellermann | 1 | -1/+0 | |
Hide the definition from C code, to prepare the transition to C++. | |||||
2013-01-21 | DecoderControl: move functions into the class | Max Kellermann | 1 | -3/+3 | |
2013-01-07 | decoder_api.h, ...: add "extern C" | Max Kellermann | 1 | -4/+0 | |
2013-01-04 | DecoderThread: move code to destructor | Max Kellermann | 1 | -0/+21 | |
2013-01-04 | MusicChunk: move functions to methods | Max Kellermann | 1 | -1/+1 | |
2013-01-04 | buffer, pipe: convert to C++ | Max Kellermann | 1 | -6/+3 | |
2013-01-04 | decoder_*: convert to C++ | Max Kellermann | 1 | -4/+8 | |
2011-09-14 | decoder_internal: don't call input_stream_buffer() | Max Kellermann | 1 | -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. | |||||
2011-01-29 | copyright year 2011 | Max Kellermann | 1 | -1/+1 | |
2011-01-10 | decoder_control: store GCond object, not a player_control | Max Kellermann | 1 | -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. | |||||
2011-01-10 | player_control: removed the global variable "pc" | Max Kellermann | 1 | -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. | |||||
2010-02-17 | replay_gain: reimplement as a filter plugin | Max Kellermann | 1 | -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. | |||||
2009-12-31 | Update copyright notices. | Avuton Olrich | 1 | -1/+1 | |
2009-12-15 | input_stream: return errors with GError | Max Kellermann | 1 | -1/+7 | |
2009-12-15 | decoder_internal: decoder_input_buffer() returns bool | Max Kellermann | 1 | -4/+4 | |
This fixes a regression: a boolean value was returned from decoder_input_buffer(), but the caller chose to do a "<= 0" comparison. | |||||
2009-11-12 | include config.h in all sources | Max Kellermann | 1 | -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. | |||||
2009-10-31 | decoder_control: removed the global variable "dc" | Max Kellermann | 1 | -16/+19 | |
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day. | |||||
2009-10-31 | player_control: protect command, state, error with a mutex | Max Kellermann | 1 | -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. | |||||
2009-08-13 | decoder_control: protect command, state with a mutex | Max Kellermann | 1 | -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. | |||||
2009-03-13 | all: Update copyright header. | Avuton Olrich | 1 | -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. | |||||
2009-03-07 | decoder_internal: don't push empty chunk into pipe | Max Kellermann | 1 | -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. | |||||
2009-03-06 | pipe: added music_buffer, rewrite music_pipe | Max Kellermann | 1 | -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. | |||||
2009-03-06 | music_pipe: added music_pipe_push() | Max Kellermann | 1 | -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. |