aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/MikmodDecoderPlugin.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-08-29DecoderAPI: pass SignedSongTime to decoder_initialized()Max Kellermann1-1/+2
2014-02-07DecoderPlugin: pass Path instance to file_decode() and scan_file()Max Kellermann1-6/+7
2014-01-24decoder/*: move to decoder/plugins/Max Kellermann1-1/+1
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-11-28include cleanup using iwyuMax Kellermann1-1/+1
2013-10-21decoder: rename the struct to "Decoder"Max Kellermann1-1/+1
2013-10-21decoder_plugin: rename struct to DecoderPluginMax Kellermann1-1/+1
2013-10-19decoder/mikmod: use const_cast instead of g_strdup()Max Kellermann1-8/+8
2013-10-18decoder/mikmod: Add loop configuration parameterSebastian Thorarensen1-2/+3
This patch allows the user to configure the mikmod decoder plugin to loop modules. It adds a configuration parameter to the mikmod decoder called "loop" which can be "no" (the old behaviour, default) or "yes" to allow modules to use backward loops.
2013-10-02Log: new logging library APIMax Kellermann1-6/+10
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-27DecoderCommand: convert to strictly-typed enumMax Kellermann1-2/+3
2013-09-05Tag, ...: move to libtag.aMax Kellermann1-1/+1
2013-09-05mpd_error.h: remove obsolete headerMax Kellermann1-3/+3
Migrate the remaining callers to FatalError().
2013-08-04DecoderPlugin: pass config_param referenceMax Kellermann1-4/+3
2013-08-03audio_format: convert to C++Max Kellermann1-4/+3
2013-07-29tag_handler: convert to C++Max Kellermann1-1/+1
2013-07-28decoder_api: convert to C++Max Kellermann1-1/+1
2013-07-28decoder/mikmod: convert to C++Max Kellermann1-18/+23
2012-02-11decoder/{mikmod,fluidsynth,mp4ff}: adapt to tag_handler APIMax Kellermann1-10/+9
Fixes build regression.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-09-25eliminate g_error() usageThomas Jansen1-2/+3
Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
2010-05-31decoder/mikmod: fix memory leakMax Kellermann1-2/+4
The return value of Player_LoadTitle() is allocated with malloc(), and must be freed by the caller.
2010-05-31decoder/mikmod: duplicate the path only onceMax Kellermann1-2/+2
2010-05-31decoder/mikdmod: moved local variable declarations in tag_dup()Max Kellermann1-12/+8
2010-01-04renamed decoder plugin sourcesMax Kellermann1-0/+0
Make it X_decoder_plugin.c.
2010-01-04decoder_api: added function decoder_replay_gain()Max Kellermann1-2/+1
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-5/+0
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-12-14decoder/mikmod: fixed gcc uninitialized warningMax Kellermann1-2/+1
Removed local variable "sample_rate".
2009-12-02audio_format: changed "bits" to "enum sample_format"Max Kellermann1-1/+1
This patch prepares support for floating point samples (and probably other formats). It changes the meaning of the "bits" attribute from a bit count to a symbolic value.
2009-11-14decoder/mikmod: count frame positionMax Kellermann1-8/+6
Don't maintain the current time stamp in a floating point variable, because this is subject to rounding errors.
2009-11-14decoder/mikmod: sample rate is configurableMax Kellermann1-3/+12
The new option "sample_rate" sets the sample rate for libmikmod.
2009-11-14decoder/mikmod: set drv_name and drv_version from PACKAGE/VERSIONMax Kellermann1-3/+3
2009-11-14decoder/mikmod: no CamelCaseMax Kellermann1-28/+34
2009-11-14decoder/mikmod: removed the struct mod_DataMax Kellermann1-14/+9
2009-11-14decoder/mikmod: merged open()/close() into decode()Max Kellermann1-31/+12
These functions are trivial, we don't need them separate.
2009-11-14decoder/mikmod: static mod_Data objectMax Kellermann1-11/+9
Don't allocate this object, put it on the stack.
2009-11-14decoder: use audio_format_init_checked()Max Kellermann1-0/+2
Let the audio_check library verify the audio format in all (relevant, i.e. non-hardcoded) plugins.
2009-11-12include config.h in all sourcesMax Kellermann1-1/+2
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-13tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann1-1/+1
2009-07-19Add audio_format_init() functionDavid Woodhouse1-3/+1
It makes no difference right now, but we're about to add an endianness flag and will want to make sure it's correctly initialised every time.
2009-03-13all: Update copyright header.Avuton Olrich1-7/+8
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-17decoders: added and fixed GLib log domainsMax Kellermann1-1/+4
Fixed the log domains of the renamed decoders. Added G_LOG_DOMAIN macros in decoders which don't have one already.
2009-02-15decoder_plugin: pass struct config_param to init() methodMax Kellermann1-1/+2
Preparing for per-plugin configuration sections in mpd.conf.
2009-01-30mikmod: call MikMod_Exit() only in the finish() methodMatthias Drochner1-6/+0
Hi - independently of libmikmod's other problems - there seems to be a problem in mpd's wrapper: MikMod_Exit() is called after the first file is decoded, which frees some ressources within the mikmod library. An attempt to play a second file leads to a crash. The appended patch fixes this for me. (I don't know what the "dup" entry is good for - someone who knows should review that too.) best regards Matthias [mk: removed 3 more MikMod_Exit() invocations]
2009-01-25use g_free() instead of free()Max Kellermann1-1/+1
On some platforms, g_free() must be used for memory allocated by GLib. This patch intends to correct a lot of occurrences, but is probably not complete.
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.
2008-12-28mikmod: use Glib instead of utils.h/log.hMax Kellermann1-9/+6
2008-12-28mikmod: convert mod_Data.audio_buffer to a static arrayMax Kellermann1-3/+1
Don't do two allocations for the mod_Data structure.
2008-11-11decoder: return void from decode() methodsMax Kellermann1-4/+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.