2016-11-24 16:40:47 +01:00
|
|
|
/*
|
2017-01-03 20:48:59 +01:00
|
|
|
* Copyright 2003-2017 The Music Player Daemon Project
|
2016-11-24 16:40:47 +01:00
|
|
|
* http://www.musicpd.org
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MPD_REPLAY_GAIN_MODE_HXX
|
|
|
|
#define MPD_REPLAY_GAIN_MODE_HXX
|
|
|
|
|
2016-11-24 17:25:32 +01:00
|
|
|
#include "Compiler.h"
|
|
|
|
|
2016-11-24 17:21:23 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
enum class ReplayGainMode : uint8_t {
|
|
|
|
OFF,
|
|
|
|
ALBUM,
|
|
|
|
TRACK,
|
|
|
|
AUTO,
|
2016-11-24 16:40:47 +01:00
|
|
|
};
|
|
|
|
|
2016-11-24 17:25:32 +01:00
|
|
|
/**
|
|
|
|
* Return the string representation of a #ReplayGainMode.
|
|
|
|
*/
|
|
|
|
gcc_pure
|
|
|
|
const char *
|
2017-05-08 14:44:49 +02:00
|
|
|
ToString(ReplayGainMode mode) noexcept;
|
2016-11-24 17:25:32 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Parse a string to a #ReplayGainMode. Throws std::runtime_error on
|
|
|
|
* error.
|
|
|
|
*/
|
|
|
|
ReplayGainMode
|
|
|
|
FromString(const char *s);
|
|
|
|
|
2016-11-24 16:40:47 +01:00
|
|
|
#endif
|