2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
2021-12-03 20:22:52 +01:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "pcm/AudioFormat.hxx"
|
|
|
|
#include "ReplayGainConfig.hxx"
|
|
|
|
|
|
|
|
struct ConfigData;
|
|
|
|
|
|
|
|
static constexpr size_t KILOBYTE = 1024;
|
|
|
|
static constexpr size_t MEGABYTE = 1024 * KILOBYTE;
|
|
|
|
|
|
|
|
struct PlayerConfig {
|
2021-12-06 23:04:29 +01:00
|
|
|
static constexpr size_t DEFAULT_BUFFER_SIZE = 8 * MEGABYTE;
|
2021-12-03 20:22:52 +01:00
|
|
|
|
|
|
|
unsigned buffer_chunks = DEFAULT_BUFFER_SIZE;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The "audio_output_format" setting.
|
|
|
|
*/
|
|
|
|
AudioFormat audio_format = AudioFormat::Undefined();
|
|
|
|
|
|
|
|
ReplayGainConfig replay_gain;
|
|
|
|
|
2021-12-03 19:59:54 +01:00
|
|
|
bool mixramp_analyzer = false;
|
|
|
|
|
2021-12-03 20:22:52 +01:00
|
|
|
PlayerConfig() = default;
|
|
|
|
|
|
|
|
explicit PlayerConfig(const ConfigData &config);
|
|
|
|
};
|