aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderAPI.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-10-19*: use nullptr instead of NULLMax Kellermann1-3/+3
2013-10-02replay_gain_*.h: rename to *.hxxMax Kellermann1-1/+1
2013-09-27DecoderCommand: convert to strictly-typed enumMax Kellermann1-7/+7
2013-09-05Tag, ...: move to libtag.aMax Kellermann1-1/+1
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+1
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-05InputLegacy: move functions to the input_stream classMax Kellermann1-1/+0
2013-09-03input_stream.h: rename to InputLegacy.hxxMax Kellermann1-1/+1
2013-08-03audio_format: convert to C++Max Kellermann1-2/+2
2013-07-31DecoderAPI: pass rvalue reference to decoder_tag()Max Kellermann1-2/+1
Avoid duplicating the tag.
2013-07-30tag: convert to C++Max Kellermann1-2/+2
2013-07-28decoder_api: convert to C++Max Kellermann1-15/+5
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-0/+8
2013-01-05DecoderAPI: _replay_gain() returns voidMax Kellermann1-4/+2
Let the function decoder_replay_gain() update decoder_control::replay_gain_db instead of letting each decoder plugin take care for that.
2012-02-11decoder_api: correct decoder_seek_error() documentationMax Kellermann1-1/+1
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-05-08mixramp: Adjust MixRamp threshold to account for ReplayGain.Tim Phipps1-2/+4
2010-03-21Add support for MixRamp tagsTim Phipps1-0/+11
Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
2010-01-18decoder_api: removed function decoder_get_uri()Max Kellermann1-9/+0
Use input_stream.uri.
2010-01-04replay_gain: moved code to replay_gain_info.cMax Kellermann1-1/+1
2010-01-04decoder_api: added function decoder_replay_gain()Max Kellermann1-2/+12
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-1/+10
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-11-12include config.h in all sourcesMax Kellermann1-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-08decoder_api: document all function parametersMax Kellermann1-27/+73
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-02-15decoder_plugin: pass struct config_param to init() methodMax Kellermann1-0/+1
Preparing for per-plugin configuration sections in mpd.conf.
2009-02-15decoder_api: moved enum decoder_command to decoder_command.hMax Kellermann1-7/+1
Minimize header dependencies, again.
2009-02-15decoder_api: moved struct decoder_plugin to decoder_plugin.hMax Kellermann1-57/+1
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-18removed playerData.cMax Kellermann1-1/+0
Fetch the configuration variables buffered_chunks and buffered_before_play just when they are needed.
2009-01-17moved fallback APE/ID3 tag loader to song.cMax Kellermann1-1/+0
Some plugins used the APE or ID3 tag loader as a fallback when their own methods of loading tags did not work. Move this code out of all decoder plugins, into song_file_update().
2009-01-17decoder_api: pass const pointer to decoder_data()Max Kellermann1-1/+2
2009-01-04song: allocate the result of song_get_url()Max Kellermann1-1/+7
2008-11-11decoder: return void from decode() methodsMax Kellermann1-2/+2
The stream_decode() and file_decode() methods returned a boolean, indicating whether they were able to decode the song. This is redundant, since we already know that: if decoder_initialized() has been called (and dc.state==DECODE), the plugin succeeded. Change both methods to return void.
2008-11-11replay_gain: no CamelCaseMax Kellermann1-1/+1
Renamed functions and variables.
2008-11-11replay_gain: renamed sources to replay_gain.c, replay_gain.hMax Kellermann1-1/+1
No CamelCase file names.
2008-11-10decoder: removed plugin method try_decode()Max Kellermann1-6/+0
Instead of having a seprate try_decode() method, let the stream_decode() and file_decode() methods decide whether they are able to decode the song.
2008-11-09decoder: updated API documentationMax Kellermann1-2/+6
Updated documentation on the stream_decode() and file_decode() return values.
2008-11-04decoder: removed stream_typesMax Kellermann1-8/+0
Instead of checking the stream_types bit set, we can simply check whether the methods stream_decode() and file_decode() are implemented.
2008-11-02decoder_api: added decoder_tag()Max Kellermann1-0/+11
Provide an API for submitting additional tags from the stream.
2008-11-02decoder_api: pass "seekable" flag to decoder_initialized()Max Kellermann1-2/+2
Don't pass the "seekable" flag with every decoder_data() invocation. Since that flag won't change within the file, it is enough to pass it to decoder_initialized() once per file.
2008-11-01decoder: manage decoder list in a static arrayMax Kellermann1-4/+0
Currently, there is no way to dynamically load decoder plugins, thus we don't need a dynamic list to manage them.
2008-10-31decoder_api: pass constant path pointersMax Kellermann1-2/+2
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-30decoder: use bool for return values and flagsMax Kellermann1-4/+4
Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
2008-10-29decoder: automatically flush the output buffer after decoder exitsMax Kellermann1-2/+0
A decoder_flush() invocation was missing in the FLAC plugin, resulting in casual assertion failures due to a wrong assumption about the last chunk's audio format. It's much easier to remove that decoder_flush() function and make the decoder thread call ob_flush().
2008-10-29decoder_api: removed decoder_clear()Max Kellermann1-2/+0
Call ob_clear() in decoder_command_finished() instead of implementing that call in every decoder plugin.
2008-10-26input_stream: renamed sources, no CamelCaseMax Kellermann1-1/+1
Renamed inputStream.c and inputStream_file.c.
2008-10-17input: declare struct input_streamMax Kellermann1-6/+7
Provide a struct type which can be forward-declared. The typedef InputStream is deprecated now.
2008-10-08use the "bool" data type instead of "int"Max Kellermann1-3/+4
"bool" should be used in C99 programs for boolean values.
2008-09-29decoder: renamed plugin methodsMax Kellermann1-35/+40
Why have a "_func" prefix on all method names? Also don't typedef the methods, there is no advantage in that.