aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/modplug_plugin.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input_stream: return errors with GErrorMax Kellermann2009-12-151-1/+1
|
* audio_format: changed "bits" to "enum sample_format"Max Kellermann2009-12-021-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.
* decoder/modplug: count frame positionMax Kellermann2009-11-141-13/+11
| | | | | Don't maintain the current time stamp in a floating point variable, because this is subject to rounding errors.
* decoder/modplug: floating point division for song durationMax Kellermann2009-11-141-3/+1
| | | | More exact total time.
* decoder/modplug: check ModPlug_Read() < 0Max Kellermann2009-11-141-3/+1
| | | | | Negative return values are not documented here, but since the function prototype is signed, let's be sure.
* decoder: use audio_format_init_checked()Max Kellermann2009-11-141-0/+2
| | | | | | Let the audio_check library verify the audio format in all (relevant, i.e. non-hardcoded) plugins.
* include config.h in all sourcesMax Kellermann2009-11-121-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.
* tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann2009-10-131-1/+1
|
* Add audio_format_init() functionDavid Woodhouse2009-07-191-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.
* modplug: get track lengthSerge Ziryukin2009-07-151-1/+1
|
* decoder: Rename all main decoder plugins functions to *decoder_plugin.Avuton Olrich2009-04-021-1/+1
|
* all: Update copyright header.Avuton Olrich2009-03-131-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.
* modplug: removed EOF check from the while loopMax Kellermann2009-01-241-2/+4
| | | | | EOF is checked by input_stream_read() (decoder_read() here). Don't do it twice. The check was wrong anyway, it was reversed.
* modplug: check for input_stream errorsMax Kellermann2009-01-241-2/+8
| | | | | When input_stream_read() returns 0, and input_stream_eof() returns false, an I/O error has occured. Skip this song.
* modplug: use size_t instead of int for buffer sizesMax Kellermann2009-01-241-1/+1
|
* modplug: check size limit before appending new bufferMax Kellermann2009-01-241-4/+4
| | | | | Don't enlarge the GByteArray when the size limit may overflow in this operation; check the size limit first.
* modplug: use GByteArray.len, remove total_lenMax Kellermann2009-01-241-4/+2
| | | | | The local variable "total_len" is superfluous because GByteArray always knows its size.
* modplug: unknown size is -1; check for empty fileMax Kellermann2009-01-241-5/+12
| | | | | | The input_stream API sets size to -1 when the size of the resource is not known. The modplug decoder checked for size==0, which would be an empty file.
* modplug: header cleanupMax Kellermann2009-01-241-2/+0
| | | | Don't include utils.h and log.h, they are relics from the past.
* modplug: define G_LOG_DOMAINMax Kellermann2009-01-241-0/+3
| | | | Make sure that log messages are decorated correctly.
* modplug: declare constants as enumMax Kellermann2009-01-241-4/+6
| | | | Don't write CPP if you can write C.
* modplug: use only decoder_read(), not input_stream_read()Max Kellermann2009-01-241-5/+1
| | | | | | You are allowed to call decoder_read() with decoder==NULL. It is a convenience function provided by the decoder API. Don't manually fall back to input_stream_read().
* modplug: change settings before loading a fileAndrzej Rybczak2009-01-241-6/+8
| | | | | alternative settings must be set before the file is loaded, otherwise they won't be respected.
* decoder: new plugin using modplug libraryViliam Mateicka2008-12-281-0/+200