aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/gme_decoder_plugin.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* decoder/gme: replace macro GME_BUF_SIZEMax Kellermann2010-05-311-4/+5
| | | | | Added macros with better names: GME_BUFFER_FRAMES, GME_BUFFER_SAMPLES (the former only used to calculate the latter).
* decoder/gme: added constants for sample rate and channelsMax Kellermann2010-05-311-6/+12
| | | | Move into enums.
* decoder/gme: pass the whole buffer to decoder_data()Max Kellermann2010-05-311-2/+2
| | | | | | | | Pass sizeof(buf) to decoder_data(), not the number of samples (which is half the size). At the same time, pass GME_BUF_SIZE to gme_play() - libgme really wants to get the number of samples, not the number of stereo frames. Previously, this plugin had been using only the first half of the buffer.
* decoder/gme: allocate tag later, fixes memory leakMax Kellermann2010-05-311-1/+1
| | | | Allocate the "tag" object after the file has been opened successfully.
* Decoder for game music emulation library.Tony Miller2010-04-101-0/+129
Supports a number of videogame music formats, more info here: http://www.fly.net/~ant/libs/audio.html I wrote this plugin for the latest svn, get it here: http://code.google.com/p/game-music-emu/source/checkout