Add ConsumeMode oneshot, closes #925

This commit is contained in:
jcorporation
2022-08-28 19:07:34 +02:00
parent b2fb920d28
commit 48a936ef5b
12 changed files with 138 additions and 14 deletions

View File

@@ -31,6 +31,7 @@
#include "protocol/RangeArg.hxx"
#include "ReplayGainMode.hxx"
#include "SingleMode.hxx"
#include "ConsumeMode.hxx"
#include "Chrono.hxx"
#include "config.h"
@@ -218,7 +219,7 @@ struct Partition final : QueueListener, PlayerListener, MixerListener {
playlist.SetSingle(pc, new_value);
}
void SetConsume(bool new_value) noexcept {
void SetConsume(ConsumeMode new_value) noexcept {
playlist.SetConsume(new_value);
}