aboutsummaryrefslogtreecommitdiffstats
path: root/src/replay_gain_info.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* replay_gain_info: allocate the struct staticallyMax Kellermann2010-02-171-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.
* replay_gain_info: use INFINITY to mark undefined valuesMax Kellermann2010-02-171-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.
* replay_gain_state: moved code to replay_gain_tuple_scale()Max Kellermann2010-02-151-0/+3
| | | | | Moved (and renamed) the function calc_replay_gain_scale() to replay_gain_info.c.
* replay_gain: added function defined()Max Kellermann2010-02-151-0/+8
| | | | This function determines whether replay gain data is available.
* replay_gain: moved code to replay_gain_info.cMax Kellermann2010-01-041-0/+52