Partition: add "name" attribute

This commit is contained in:
Max Kellermann
2017-02-17 23:18:51 +01:00
parent 7dc3e73782
commit c335f18be7
4 changed files with 12 additions and 2 deletions

View File

@@ -31,6 +31,8 @@
#include "Chrono.hxx"
#include "Compiler.h"
#include <string>
struct Instance;
class MultipleOutputs;
class SongLoader;
@@ -45,6 +47,8 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
Instance &instance;
const std::string name;
MaskMonitor global_events;
struct playlist playlist;
@@ -56,6 +60,7 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
ReplayGainMode replay_gain_mode = ReplayGainMode::OFF;
Partition(Instance &_instance,
const char *_name,
unsigned max_length,
unsigned buffer_chunks,
unsigned buffered_before_play,