ReplayGainMode: add ToString(), FromString()

Move code from ReplayGainConfig.cxx.
This commit is contained in:
Max Kellermann
2016-11-24 17:25:32 +01:00
parent 5f396e824f
commit 0720702c91
6 changed files with 91 additions and 69 deletions

View File

@@ -22,7 +22,6 @@
#include "check.h"
#include "ReplayGainMode.hxx"
#include "Compiler.h"
extern ReplayGainMode replay_gain_mode;
extern float replay_gain_preamp;
@@ -32,19 +31,4 @@ extern bool replay_gain_limit;
void
replay_gain_global_init();
/**
* Returns the current replay gain mode as a machine-readable string.
*/
gcc_pure
const char *
replay_gain_get_mode_string();
/**
* Sets the replay gain mode, parsed from a string.
*
* @return true on success, false if the string could not be parsed
*/
bool
replay_gain_set_mode_string(const char *p);
#endif