2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2016-11-24 16:40:47 +01:00
|
|
|
|
|
|
|
#ifndef MPD_REPLAY_GAIN_MODE_HXX
|
|
|
|
#define MPD_REPLAY_GAIN_MODE_HXX
|
|
|
|
|
2020-03-13 01:08:53 +01:00
|
|
|
#include <cstdint>
|
2016-11-24 17:21:23 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
2021-10-13 11:28:04 +02:00
|
|
|
[[gnu::pure]]
|
2016-11-24 17:25:32 +01:00
|
|
|
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
|