aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderControl.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-13copyright year 2014Max Kellermann1-1/+1
2014-01-09DetachedSong: fork of struct SongMax Kellermann1-5/+5
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-11-06DecoderControl: reduce the number of PlayerThread wakeupsMax Kellermann1-3/+11
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-10-28DecoderControl: convert mutex and client_cond to a referenceMax Kellermann1-3/+14
Share the Mutex between the DecoderThread and the PlayerThread. This simplifies synchronization between the two threads and fixes a freeze problem: while the PlayerThread waits for the DeocderThread, it cannot answer requests from the main thread, and the main thread will block until the DecoderThread finishes.
2013-10-28decoder_control: rename to DecoderControlMax Kellermann1-6/+6
2013-10-26DecoderControl: move code/attributes to new class MixRampInfoMax Kellermann1-8/+9
2013-10-26DecoderThread: move code to DecoderControl::CycleMixRamp()Max Kellermann1-1/+6
2013-10-26DecoderControl: add MixRamp gettersMax Kellermann1-0/+12
2013-10-21Song: pass reference to song_equals()Max Kellermann1-2/+2
2013-10-17Thread/Thread: replacement library for GThreadMax Kellermann1-4/+5
2013-09-27DecoderControl: use GLib forward declarationsMax Kellermann1-2/+1
2013-09-27DecoderControl: convert "enum decoder_state" to strictly-typed enumMax Kellermann1-16/+22
2013-09-27DecoderCommand: convert to strictly-typed enumMax Kellermann1-8/+8
2013-09-27DecoderControl: convert functions to methodsMax Kellermann1-0/+47
2013-09-26MusicBuffer: expose the C++ APIMax Kellermann1-2/+3
2013-09-26MusicPipe: expose the C++ APIMax Kellermann1-2/+3
2013-09-04util/Error: new error passing libraryMax Kellermann1-12/+16
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/+6
2013-07-28decoder_api: convert to C++Max Kellermann1-1/+1
2013-01-27DecoderControl, InputStream: use Mutex/Cond instead of GMutex/GCondMax Kellermann1-8/+10
2013-01-21DecoderControl: move functions into the classMax Kellermann1-188/+135
2013-01-20PlayerControl: move functions into the classMax Kellermann1-0/+9
2013-01-10DecoderControl: take ownership of client_condMax Kellermann1-1/+1
Don't let the "client" pass its own GCond. This was not used consistently.
2013-01-04decoder_*: convert to C++Max Kellermann1-3/+3
2012-08-15decoder_control: duplicate the song objectMax Kellermann1-2/+6
Make sure the decoder "owns" the song object, so nobody else can free it.
2012-08-15decoder_control: add function _is_current_song()Max Kellermann1-14/+20
Replaces _current_song().
2012-08-15decoder_control: add assertion to dc_get_error()Max Kellermann1-0/+1
2012-08-08decoder_control: add GError attributeMax Kellermann1-0/+51
2011-10-05decoder_control: add attributes start_ms, end_msMax Kellermann1-0/+20
Don't read song.start_ms and song.end_ms, let the player thread manage this logic instead.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2011-01-10decoder_control: store GCond object, not a player_controlMax Kellermann1-9/+7
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-10decoder_control: remove unused function dc_command_wait()Max Kellermann1-3/+0
Only dc_command_wait_locked() is really being used.
2011-01-10decoder_control: replace dc_init() with dc_new()Max Kellermann1-3/+4
dc_new() allocates the object and returns it. dc_free() frees it (replaces dc_deinit()).
2011-01-10player_control: removed the global variable "pc"Max Kellermann1-1/+9
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-11-05decoder_control: pass music_pipe to dc_start()Max Kellermann1-2/+2
More abstraction for decoder_control.pipe.
2010-05-08mixramp: Adjust MixRamp threshold to account for ReplayGain.Tim Phipps1-0/+2
2010-03-21Add support for MixRamp tagsTim Phipps1-0/+13
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-03decoder_control: pass pipe and buffer to dc_start()Max Kellermann1-2/+14
Don't access decoder_control attributes directly.
2009-11-03decoder_control: don't check command in decoder_is_starting()Max Kellermann1-5/+3
Asynchronous decoder startup is gone, and we don't need to check command==DECODE_COMMAND_START anymore.
2009-11-03decoder_control: merge next_song and current_songMax Kellermann1-3/+8
These two variables are redundant, we need only one of them.
2009-11-03player_thread: don't start the decoder asynchronouslyMax Kellermann1-3/+0
The START command returns without blocking; we don't need the asynchronous decoder start anymore.
2009-11-03decoder_control: make the song objects constMax Kellermann1-2/+2
They are just informational.
2009-10-31decoder_control: removed the global variable "dc"Max Kellermann1-44/+50
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
2009-10-31decoder_control: removed unused DECODE_TYPE macrosMax Kellermann1-3/+0
2009-10-31player_control: protect command, state, error with a mutexMax Kellermann1-6/+4
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-13decoder_control: protect command, state with a mutexMax Kellermann1-5/+92
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-13all: Update copyright header.Avuton Olrich1-7/+7
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-06pipe: added music_buffer, rewrite music_pipeMax Kellermann1-0/+6
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.