mpd/src/output/Defaults.hxx
2023-03-06 14:59:48 +01:00

31 lines
636 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_AUDIO_OUTPUT_DEFAULTS_HXX
#define MPD_AUDIO_OUTPUT_DEFAULTS_HXX
#include "mixer/Type.hxx"
struct ConfigData;
/**
* This struct contains global AudioOutput configuration settings
* which may provide defaults for per-output settings.
*/
struct AudioOutputDefaults {
bool normalize = false;
MixerType mixer_type = MixerType::HARDWARE;
constexpr AudioOutputDefaults() = default;
/**
* Load defaults from configuration file.
*
* Throws on error.
*/
explicit AudioOutputDefaults(const ConfigData &config);
};
#endif