aboutsummaryrefslogtreecommitdiff
path: root/src/decoder_api.h
Commit message (Collapse)AuthorAge
* decoder_api.h, ...: add "extern C"Max Kellermann2013-01-07
|
* DecoderAPI: _replay_gain() returns voidMax Kellermann2013-01-05
| | | | | | Let the function decoder_replay_gain() update decoder_control::replay_gain_db instead of letting each decoder plugin take care for that.
* decoder_api: correct decoder_seek_error() documentationMax Kellermann2012-02-11
|
* copyright year 2011Max Kellermann2011-01-29
|
* mixramp: Adjust MixRamp threshold to account for ReplayGain.Tim Phipps2010-05-08
|
* Add support for MixRamp tagsTim Phipps2010-03-21
| | | | | Adds mixrampdb and mixrampdelay commands. Reads MIXRAP_START and MIXRAMP_END tags from FLAC files and overlaps instead of crossfading.
* decoder_api: removed function decoder_get_uri()Max Kellermann2010-01-18
| | | | Use input_stream.uri.
* replay_gain: moved code to replay_gain_info.cMax Kellermann2010-01-04
|
* decoder_api: added function decoder_replay_gain()Max Kellermann2010-01-04
| | | | | | 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.
* Update copyright notices.Avuton Olrich2009-12-31
|
* decoder_api: added function decoder_timestamp()Max Kellermann2009-12-26
| | | | | | 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.
* include config.h in all sourcesMax Kellermann2009-11-12
| | | | | | 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_api: document all function parametersMax Kellermann2009-10-08
|
* all: Update copyright header.Avuton Olrich2009-03-13
| | | | | | | | 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_plugin: pass struct config_param to init() methodMax Kellermann2009-02-15
| | | | Preparing for per-plugin configuration sections in mpd.conf.
* decoder_api: moved enum decoder_command to decoder_command.hMax Kellermann2009-02-15
| | | | Minimize header dependencies, again.
* decoder_api: moved struct decoder_plugin to decoder_plugin.hMax Kellermann2009-02-15
| | | | | | 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.
* removed playerData.cMax Kellermann2009-01-18
| | | | | Fetch the configuration variables buffered_chunks and buffered_before_play just when they are needed.
* moved fallback APE/ID3 tag loader to song.cMax Kellermann2009-01-17
| | | | | | 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().
* decoder_api: pass const pointer to decoder_data()Max Kellermann2009-01-17
|
* song: allocate the result of song_get_url()Max Kellermann2009-01-04
|
* decoder: return void from decode() methodsMax Kellermann2008-11-11
| | | | | | | | 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.
* replay_gain: no CamelCaseMax Kellermann2008-11-11
| | | | Renamed functions and variables.
* replay_gain: renamed sources to replay_gain.c, replay_gain.hMax Kellermann2008-11-11
| | | | No CamelCase file names.
* decoder: removed plugin method try_decode()Max Kellermann2008-11-10
| | | | | | 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.
* decoder: updated API documentationMax Kellermann2008-11-09
| | | | | Updated documentation on the stream_decode() and file_decode() return values.
* decoder: removed stream_typesMax Kellermann2008-11-04
| | | | | Instead of checking the stream_types bit set, we can simply check whether the methods stream_decode() and file_decode() are implemented.
* decoder_api: added decoder_tag()Max Kellermann2008-11-02
| | | | Provide an API for submitting additional tags from the stream.
* decoder_api: pass "seekable" flag to decoder_initialized()Max Kellermann2008-11-02
| | | | | | 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.
* decoder: manage decoder list in a static arrayMax Kellermann2008-11-01
| | | | | Currently, there is no way to dynamically load decoder plugins, thus we don't need a dynamic list to manage them.
* decoder_api: pass constant path pointersMax Kellermann2008-10-31
|
* added prefix to header macrosMax Kellermann2008-10-31
| | | | | | | "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.
* decoder: use bool for return values and flagsMax Kellermann2008-10-30
| | | | | Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
* decoder: automatically flush the output buffer after decoder exitsMax Kellermann2008-10-29
| | | | | | | 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().
* decoder_api: removed decoder_clear()Max Kellermann2008-10-29
| | | | | Call ob_clear() in decoder_command_finished() instead of implementing that call in every decoder plugin.
* input_stream: renamed sources, no CamelCaseMax Kellermann2008-10-26
| | | | Renamed inputStream.c and inputStream_file.c.
* input: declare struct input_streamMax Kellermann2008-10-17
| | | | | Provide a struct type which can be forward-declared. The typedef InputStream is deprecated now.
* use the "bool" data type instead of "int"Max Kellermann2008-10-08
| | | | "bool" should be used in C99 programs for boolean values.
* decoder: renamed plugin methodsMax Kellermann2008-09-29
| | | | | Why have a "_func" prefix on all method names? Also don't typedef the methods, there is no advantage in that.
* switch to C99 types, part IIMax Kellermann2008-09-29
| | | | | Do full C99 integer type conversion in all modules which were not touched by Eric's merged patch.
* audio_format: converted typedef AudioFormat to struct audio_formatMax Kellermann2008-09-07
| | | | | Get rid of CamelCase, and don't use a typedef, so we can forward-declare it, and unclutter the include dependencies.
* tag: moved code to tag_id3.cMax Kellermann2008-08-29
| | | | | The ID3 code uses only the public tag API, but is otherwise unrelated. Move it to a separate source file.
* tag: renamed MpdTag and MpdTagItem to struct tag, struct mpd_tag_itemMax Kellermann2008-08-29
| | | | | Getting rid of CamelCase; not having typedefs also allows us to forward-declare the structures.
* moved enum decoder_command to decoder_api.hMax Kellermann2008-08-26
| | | | | | The decoder plugins need this type, so export it in the public API. This allows is to remove "decode.h" from "decoder_api.h", uncluttering the API namespace some more.
* moved variable "dc" to decode.hMax Kellermann2008-08-26
| | | | | Now that "dc" is available here, we don't have to pass it to decoder_is_idle() and decoder_is_starting() anymore.
* added decoder_read()Max Kellermann2008-08-26
| | | | | | | | | On our way to stabilize the decoder API, we will one day remove the input stream functions. The most basic function, read() will be provided by decoder_api.h with this patch. It already contains a loop (still with manual polling), error/eof handling and decoder command checks. This kind of code used to be duplicated in all decoder plugins.
* added decoder_plugin_register()Max Kellermann2008-08-26
| | | | | | | With the functions decoder_plugin_register() and decoder_plugin_unregister(), decoder plugins can register a "secondary" plugin, like the flac input plugin does this for "oggflac".
* no camel case in struct decoder_pluginMax Kellermann2008-08-26
|
* renamed the InputPlugin function typesMax Kellermann2008-08-26
| | | | Continuing the effort to rename InputPlugin to decoder_plugin...
* renamed InputPlugin to struct decoder_pluginMax Kellermann2008-08-26
| | | | | | "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.