mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-20 12:36:17 +02:00
Log stream state as string
This commit is contained in:
parent
178888a512
commit
1725cffc6e
5 changed files with 25 additions and 5 deletions
|
@ -46,6 +46,25 @@ enum class ReaderState
|
|||
kDisabled = 3
|
||||
};
|
||||
|
||||
static std::ostream& operator<<(std::ostream& os, const ReaderState& reader_state)
|
||||
{
|
||||
switch (reader_state)
|
||||
{
|
||||
case ReaderState::kIdle:
|
||||
os << "idle";
|
||||
break;
|
||||
case ReaderState::kPlaying:
|
||||
os << "playing";
|
||||
break;
|
||||
case ReaderState::kDisabled:
|
||||
os << "disabled";
|
||||
break;
|
||||
case ReaderState::kUnknown:
|
||||
default:
|
||||
os << "unknown";
|
||||
}
|
||||
return os;
|
||||
}
|
||||
|
||||
static constexpr auto kUriCodec = "codec";
|
||||
static constexpr auto kUriName = "name";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue