aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_list.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-02-28decoder_list: print decoder list with suffixesMax Kellermann1-21/+10
Print the list of suffixes supported by each decoder, instead of prining a list of all suffixes of all decoders with duplicates.
2009-02-17renamed decoder plugin "mpc" to "mpcdec"Max Kellermann1-2/+2
This plugin is based on "libmpcdec".
2009-02-17renamed decoder plugin "mp4" to "mp4ff"Max Kellermann1-2/+2
This plugin is based on "libmp4ff".
2009-02-16renamed decoder plugin "aac" to "faad"Max Kellermann1-2/+2
A decoder plugin should be named after the library which is used.
2009-02-16renamed decoder plugin "mp3" to "mad"Max Kellermann1-2/+2
A decoder plugin should be named after the library which is used.
2009-02-15decoder_list: added configuration option to disable decoder pluginsMax Kellermann1-0/+4
2009-02-15decoder_list: added configuration block "decoder"Max Kellermann1-1/+29
The "decoder" configuration block may contain the configuration of one decoder plugin.
2009-02-15decoder_plugin: pass struct config_param to init() methodMax Kellermann1-1/+1
Preparing for per-plugin configuration sections in mpd.conf.
2009-02-15decoder_plugin: added inline wrapper functionsMax Kellermann1-3/+5
Increase code readability, always use the wrapper functions instead of calling the plugin method pointers directly.
2009-02-15decoder_api: moved struct decoder_plugin to decoder_plugin.hMax Kellermann1-1/+3
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-02-12wildmidi: new decoder plugin for MIDI filesMax Kellermann1-0/+4
2009-02-12fluidsynth: new decoder plugin for MIDI filesMax Kellermann1-0/+4
There are a few problems left in this plugin: - fluidsynth decodes in real time, while MPD prefers to buffer as quickly as possible; as a workaround, this plugin uses a timer object to synchronize with real-time playback - I don't know yet how fluidsynth tells me when the song has ended - the "soundfont" configuration setting is not yet documented, and it will likely change soon (in favor of a per-decoder configuration block)
2009-02-11sidplay: new decoder plugin for playing C64 SID filesMax Kellermann1-0/+4
2009-01-24renamed the "mod" decoder plugin to "mikmod"Max Kellermann1-2/+2
We have two mod plugins now: modplug and mod. Rename the latter to a more useful name.
2009-01-15flac: no CamelCaseMax Kellermann1-4/+4
Renamed types, functions, variables.
2009-01-14oggvorbis: no CamelCaseMax Kellermann1-2/+2
Renamed functions and variables.
2009-01-08added missing explicit config.h includesMax Kellermann1-0/+1
2008-12-30print supported decoders in --versionViliam Mateicka1-0/+13
2008-12-28decoder: new plugin using modplug libraryViliam Mateicka1-0/+4
2008-12-09utils: moving stringFoundInStringArray() from decoder into utilsViliam Mateicka1-11/+1
2008-11-10flac: enable oggflac with libflacMax Kellermann1-1/+1
The "oggflac" plugin was enabled only if HAVE_FLAC_COMMON was defined. HAVE_FLAC_COMMON however is only an automake variable, and is never available in decoder_list.c. Make decoder_list.c depend on HAVE_FLAC||HAVE_OGGFLAC instead.
2008-11-04wavpack: no CamelCaseMax Kellermann1-2/+2
Renamed functions and variables.
2008-11-04mp4: no CamelCaseeMax Kellermann1-2/+2
Renamed functions and variables.
2008-11-04ffmpeg: no CamelCaseMax Kellermann1-2/+2
Renamed variables.
2008-11-03configure.ac: separate the "aac" and "mp4" decoder testsMax Kellermann1-1/+3
MPD used to have a copy of the mp4ff library. Since that has been removed, AAC suport was disabled when there was no libmp4ff. Separate the libmp4ff test, and enable AAC support no matter if libmp4ff is available.
2008-11-02decoder: enable decoders even if they have no init() methodMax Kellermann1-1/+1
Commit 1a4a3e1f moved decoders into a static array, but failed to enable those plugins who did not have an init() method at all. This patch corrects the "enabled" check.
2008-11-01decoder: make all decoder_plugin structs constMax Kellermann1-11/+11
All decoder_plugin structs are initialized at compile time, and must never change.
2008-11-01decoder: manage decoder list in a static arrayMax Kellermann1-90/+78
Currently, there is no way to dynamically load decoder plugins, thus we don't need a dynamic list to manage them.
2008-11-01decoder: return const decoder_plugin structsMax Kellermann1-7/+8
The decoder_plugin structs must never change. Don't work with non-const pointers.
2008-10-30decoder: use bool for return values and flagsMax Kellermann1-1/+1
Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags.
2008-10-17ffmpeg: new decoder pluginViliam Mateicka1-0/+4
[mk: fixed indent, changed copyright statement, added autoconf test, fixed includes paths, fixed 2 gcc warnings, don't close input stream twice]
2008-10-17Makefile.am: don't compile disabled decoder pluginsMax Kellermann1-0/+18
Don't compile the sources of disabled decoder plugins at all, and don't attempt to register these.
2008-09-29decoder: renamed plugin methodsMax Kellermann1-3/+3
Why have a "_func" prefix on all method names? Also don't typedef the methods, there is no advantage in that.
2008-08-26moved global variable "pc" to player.hMax Kellermann1-0/+1
This is the last of the three variables. Now we don't need playerData.h anymore in most sources.
2008-08-26renamed functions in decoder_list.hMax Kellermann1-18/+20
InputPlugin to decoder_plugin, and no camelCase.
2008-08-26no camel case in struct decoder_pluginMax Kellermann1-4/+4
2008-08-26renamed inputPlugin.* to decoder_list.*Max Kellermann1-1/+1
Since inputPlugin.c manages the list of registered decoders, we should rename the source file.
2008-08-26moved decoder externs to inputPlugin.cMax Kellermann1-0/+11
The decoder_plugin instances are only used inputPlugin.c, so move them from the header file.
2008-08-26renamed InputPlugin to struct decoder_pluginMax Kellermann1-10/+11
"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.
2008-04-12clean up CPP includesMax Kellermann1-4/+0
Try to only include headers which are really needed. We should particularly check all "headers including other headers". The long-term goal is to have a manageable, small API for plugins (decoders, output) without so many mpd internals cluttering the namespace. git-svn-id: https://svn.musicpd.org/mpd/trunk@7319 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2008-02-05fix -Wconst warningsMax Kellermann1-5/+5
[ew: cleaned up the dirty union hack a bit] Signed-off-by: Eric Wong <normalperson@yhbt.net> git-svn-id: https://svn.musicpd.org/mpd/trunk@7180 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2008-01-03Cleanup #includes of standard system headers and put them in one placeEric Wong1-3/+1
This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-24Adding WavPack support. Patch courtesy Kodest.J. Alexander Treuman1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@6651 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-04Actually load the aac input plugin.J. Alexander Treuman1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@6479 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-04-05The massive copyright updateAvuton Olrich1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@5834 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-14sparse: move extern declarations for plugins into header filesEric Wong1-10/+0
git-svn-id: https://svn.musicpd.org/mpd/trunk@5261 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-14Don't initialize globals to zero (or NULL)Eric Wong1-3/+3
Some compilers and linkers aren't smart enough to optimize this, as global variables are implictly initialized to zero. As a result, binaries are a bit smaller as more goes in the .bss and less in the text section. git-svn-id: https://svn.musicpd.org/mpd/trunk@5254 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-30remove deprecated myfprintf wrapperEric Wong1-2/+3
This shaves another 5-6k because we've removed the paranoid fflush() calls after every fprintf. Now we only fflush() when we need to git-svn-id: https://svn.musicpd.org/mpd/trunk@4493 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-20Add mpd-indent.shAvuton Olrich1-41/+59
Indent the entire tree, hopefully we can keep it indented. git-svn-id: https://svn.musicpd.org/mpd/trunk@4410 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-17sparse: ANSI-fy function declarationsEric Wong1-2/+2
These are just warnings from sparse, but it makes the output easier to read. I ran this through a quick perl script, but of course verified the output by looking at the diff and making sure the thing still compiles. here's the quick perl script I wrote to generate this patch: ----------- 8< ----------- use Tie::File; defined(my $pid = open my $fh, '-|') or die $!; if (!$pid) { open STDERR, '>&STDOUT' or die $!; exec 'sparse', @ARGV or die $!; } my $na = 'warning: non-ANSI function declaration of function'; while (<$fh>) { print STDERR $_; if (/^(.+?\.[ch]):(\d+):(\d+): $na '(\w+)'/o) { my ($f, $l, $pos, $func) = ($1, $2, $3, $4); $l--; tie my @x, 'Tie::File', $f or die "$!: $f"; print '-', $x[$l], "\n"; $x[$l] =~ s/\b($func\s*)\(\s*\)/$1(void)/; print '+', $x[$l], "\n"; untie @x; } } git-svn-id: https://svn.musicpd.org/mpd/trunk@4378 09075e82-0dd4-0310-85a5-a0d7c8717e4f