Modified metadata interface to be tag independent, added JSON api.

This commit is contained in:
frafall 2017-11-30 11:07:23 +01:00
parent 67083975b0
commit ce17b0010a
7 changed files with 116 additions and 33 deletions

View file

@ -179,3 +179,17 @@ json PcmStream::toJson() const
return j;
}
std::shared_ptr<msg::StreamTags> PcmStream::getMeta() const
{
return meta_;
}
void PcmStream::setMeta(json jtag)
{
meta_.reset(new msg::StreamTags(jtag));
// Trigger a stream update
if (pcmListener_)
pcmListener_->onMetaChanged(this);
}