aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DecoderInternal.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-08-27DecoderControl: use std::chrono::duration for Seek()Max Kellermann1-1/+1
2014-08-12MusicChunk: rename struct to MusicChunkMax Kellermann1-2/+3
2014-01-24decoder/*: move to decoder/plugins/Max Kellermann1-0/+0
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-28include cleanup using iwyuMax Kellermann1-2/+0
2013-11-13DecoderAPI: stop decoder on MPD errorMax Kellermann1-0/+7
This commit adds the basic infrastructure for reporting bugs from DecoderAPI.cxx via DecoderThread.cxx to DecoderControl.
2013-11-13DecoderInternal: allocate PcmConvert dynamicallyMax Kellermann1-2/+7
Reduce header dependencies and allow it to be nullptr to disable it.
2013-11-13DecoderInternal: move functions into the classMax Kellermann1-16/+14
2013-11-06DecoderInternal: lock DecoderControl in _flush_chunk()Max Kellermann1-0/+2
Must hold the Mutex to signal the Cond object safely.
2013-10-28decoder_control: rename to DecoderControlMax Kellermann1-3/+3
2013-10-25ReplayGainInfo: use CamelCase for struct nameMax Kellermann1-1/+1
2013-10-23input_stream: rename struct to InputStreamMax Kellermann1-1/+1
2013-10-21decoder: rename the struct to "Decoder"Max Kellermann1-5/+5
2013-10-19*: use references instead of pointersMax Kellermann1-2/+3
2013-10-02replay_gain_*.h: rename to *.hxxMax Kellermann1-1/+1
2013-07-30tag: convert to C++Max Kellermann1-5/+5
2013-07-28decoder_api: convert to C++Max Kellermann1-1/+1
2013-04-09pcm_*: move to src/pcm/Max Kellermann1-1/+1
2013-01-31pcm_convert: convert to C++Max Kellermann1-3/+2
2013-01-04DecoderThread: move code to destructorMax Kellermann1-1/+5
2013-01-04DecoderInternal: initialize replay_gain_serialMax Kellermann1-1/+2
2013-01-04DecoderInternal: move initializers to constructorMax Kellermann1-4/+7
2013-01-04decoder_*: convert to C++Max Kellermann1-3/+3
2013-01-02{decoder,player}_thread: convert to C++Max Kellermann1-0/+7
2011-09-22decoder_api: emulate SEEK command for initial seek to CUE trackMax Kellermann1-0/+14
When playing a CUE track, the player thread waited for the decoder to become ready, and then sent a SEEK command to the beginning of the CUE track. If that is near the start of the song file, and the track is short enough, the decoder could have finished decoding already at that point, and seeking fails. This commit makes this initial seek more robust: instead of letting the player thread deal with the difficult timings, let the decoder API emulate a SEEK command, and return it to the decoder plugin, as soon as the plugin finishes its initialization.
2011-09-22decoder_internal.h: more API documentationMax Kellermann1-0/+5
2011-09-14decoder_internal: don't call input_stream_buffer()Max Kellermann1-1/+1
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-29copyright year 2011Max Kellermann1-1/+1
2010-02-17replay_gain: reimplement as a filter pluginMax Kellermann1-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.
2010-01-04replay_gain: refactor API, move code to replay_gain_state.cMax Kellermann1-1/+1
The replay_gain_state struct holds the precalculated scale factor, which is removed from struct replay_gain_info.
2010-01-04decoder_api: added function decoder_replay_gain()Max Kellermann1-0/+2
This function replaces the replay_gain_info parameter for decoder_data(). This allows the decoder to announce replay gain changes, instead of having to pass the same object over and over.
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-26decoder_api: added function decoder_timestamp()Max Kellermann1-0/+5
Remove the data_time parameter from decoder_data(). This patch eliminates the timestamp counting in most decoder plugins, because the MPD core will do it automatically by default.
2009-10-31decoder_control: removed the global variable "dc"Max Kellermann1-0/+2
Allocate a decoder_control object where needed, and pass it around. This will allow more than one decoder thread one day.
2009-04-13decoder_api: submit the song tag to the music pipeMax Kellermann1-0/+7
When a new song starts playing, send its tag (song->tag) to the music pipe. This allows output plugins to render tags for all songs, not only those with embedded tags understood by the decoder plugin.
2009-03-13all: Update copyright header.Avuton Olrich1-6/+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-7/+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.
2009-03-06music_pipe: added music_pipe_push()Max Kellermann1-0/+22
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.
2009-02-15decoder_api: moved struct decoder_plugin to decoder_plugin.hMax Kellermann1-1/+0
The decoder_plugin struct is used by both the MPD core and the decoder plugin implementations. Move it to a shared header file, to minimize header dependencies.
2009-01-07pcm_utils: moved conversion code to pcm_convert.cMax Kellermann1-1/+1
All what's left in pcm_utils.h is the pcm_range() utility function, which is only used internally by pcm_volume and pcm_mix.
2009-01-03input_stream: added tag() methodMax Kellermann1-2/+5
The tag() method reads a tag from the stream. This replaces the meta_name and meta_title attributes.
2008-11-08decoder: removed "plugin" from the decoder structMax Kellermann1-2/+0
decoder.plugin was a write-only attribute.
2008-11-03decoder_api: automatically send stream tagMax Kellermann1-0/+3
If an input stream provides tags (e.g. from an icecast server), send them in the decoder_data() and decoder_tag() methods. Removed the according code from the mp3 and oggvorbis plugins - decoders shouldn't have to care about stream tags. This patch also adds the missing decoder_tag() invocation to the mp3 plugin.
2008-11-01decoder: return const decoder_plugin structsMax Kellermann1-1/+1
The decoder_plugin structs must never change. Don't work with non-const pointers.
2008-10-31added prefix to header macrosMax Kellermann1-2/+2
"LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
2008-10-21pcm_utils: renamed ConvState to struct pcm_convert_stateMax Kellermann1-1/+1
No CamelCase, and a struct instead of a typedef.
2008-10-08use the "bool" data type instead of "int"Max Kellermann1-1/+1
"bool" should be used in C99 programs for boolean values.
2008-08-26added flag "decoder.seeking"Max Kellermann1-0/+2
This flag is used internally; it is set by decoder_seek_where(), and indicates that the decoder plugin has begun the seek process. It is used for the case that the decoder plugin has to read data during the seek process. Before this patch, that was impossible, because decoder_read() would refuse to read data unless dc->command is NONE. This patch is kind of a dirty workaround, and needs to be redesigned later.
2008-08-26renamed InputPlugin to struct decoder_pluginMax Kellermann1-1/+1
"decoder plugin" is a better name than "input plugin", since the plugin does not actually do the input - InputStream does. Also don't use typedef, so we can forward-declare it if required.