aboutsummaryrefslogtreecommitdiffstats
path: root/src/MixRampInfo.hxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-10-26DecoderControl: move code/attributes to new class MixRampInfoMax Kellermann1-28/+36
2013-10-25ReplayGainInfo: refactor to a classMax Kellermann1-29/+25
2013-10-25ReplayGainInfo: use CamelCase for struct nameMax Kellermann1-9/+9
2013-10-02replay_gain_*.h: rename to *.hxxMax Kellermann1-20/+3
2013-01-07replay_gain_info, ...: use cmath instead of math.h in C++ modeMax Kellermann1-0/+8
Fixes build problems with mingw32.
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-0/+8
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-05-30filter/replay_gain: added option "replaygain_limit"Daniel Seuthe1-1/+1
2010-04-25replay_gain: added mode "auto"Daniel Seuthe1-1/+2
2010-02-17replay_gain: fall back to track gain if album gain is unavailableMax Kellermann1-0/+7
2010-02-17replay_gain_info: allocate the struct staticallyMax Kellermann1-10/+12
Don't allocate each replay_gain_info object on the heap. Those objects who held a pointer now store a full replay_gain_info object. This reduces the number of allocations and heap fragmentation.
2010-02-17replay_gain_info: use INFINITY to mark undefined valuesMax Kellermann1-1/+2
The previous patch not only moved code, it also changed the check. Negative gain values seem to be valid after all, there just was the "magic" value 0.0 which means "not available". This patch changes the "magic" value to "INFINITY", and uses the C99 function isinf() to check. It might have been a better idea to use "NAN", but the "NAN" macro is a GNU extension.
2010-02-15replay_gain_state: moved code to replay_gain_tuple_scale()Max Kellermann1-0/+3
Moved (and renamed) the function calc_replay_gain_scale() to replay_gain_info.c.
2010-02-15replay_gain: added function defined()Max Kellermann1-0/+8
This function determines whether replay gain data is available.
2010-01-04replay_gain: moved code to replay_gain_info.cMax Kellermann1-27/+5
2010-01-04replay_gain: refactor API, move code to replay_gain_state.cMax Kellermann1-9/+2
The replay_gain_state struct holds the precalculated scale factor, which is removed from struct replay_gain_info.
2010-01-04replay_gain: added function replay_gain_info_dup()Max Kellermann1-0/+6
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-10-17command: allow changing replay gain mode on-the-flyMax Kellermann1-0/+16
The new command "replay_gain_mode" allows the user to switch the replay gain mode on-the-fly. No more mpd.conf editing.
2009-03-13all: Update copyright header.Avuton Olrich1-7/+10
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.
2008-11-11replay_gain: converted struct replay_gain_info elements to an arrayMax Kellermann1-4/+6
Having an array instead of individual variables allows the use of the replay_gain_mode enum as an array index.
2008-11-11replay_gain: converted replay_gain_mode to an enumMax Kellermann1-4/+6
Prefer C enums over CPP macros.
2008-11-11replay_gain: no CamelCaseMax Kellermann1-16/+18
Renamed functions and variables.
2008-11-11replay_gain: renamed sources to replay_gain.c, replay_gain.hMax Kellermann1-0/+0
No CamelCase file names.
2008-10-31added prefix to header macrosMax Kellermann1-2/+2
"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.
2008-09-07audio_format: converted typedef AudioFormat to struct audio_formatMax Kellermann1-3/+3
Get rid of CamelCase, and don't use a typedef, so we can forward-declare it, and unclutter the include dependencies.
2008-08-26moved struct AudioFormat to audio_format.hMax Kellermann1-1/+1
We want to expose the AudioFormat structure to plugins; remove some clutter by moving its declaration to a separate header file.
2008-04-12constant pointers in replayGain.cMax Kellermann1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@7342 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
2006-08-20Fix warnings for -Wmissing-prototypesAvuton Olrich1-2/+2
Add -Wmissing-prototypes if compiling with gcc Static where possible git-svn-id: https://svn.musicpd.org/mpd/trunk@4657 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-24Do normalization if there's replaygain data but replaygain is offJ. Alexander Treuman1-0/+2
git-svn-id: https://svn.musicpd.org/mpd/trunk@4445 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-20Add mpd-indent.shAvuton Olrich1-4/+4
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-14Change shank's email addressJ. Alexander Treuman1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@4333 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-07-13Huge header update, update the copyright and addAvuton Olrich1-1/+1
the GPL header where necessary git-svn-id: https://svn.musicpd.org/mpd/trunk@4317 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-11-02rewrite replaygain code, needs testingWarren Dukes1-5/+15
git-svn-id: https://svn.musicpd.org/mpd/trunk@2482 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-08add aliasMrJones to various placesWarren Dukes1-0/+19
git-svn-id: https://svn.musicpd.org/mpd/trunk@954 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-05-07add replayGain stuff for flac from AliasMrJonesWarren Dukes1-0/+19
git-svn-id: https://svn.musicpd.org/mpd/trunk@943 09075e82-0dd4-0310-85a5-a0d7c8717e4f