audio streams: getTime fix

This commit is contained in:
MihailRis
2024-03-06 20:01:24 +03:00
parent cea4867567
commit 6874e3c812
5 changed files with 56 additions and 4 deletions
+8
View File
@@ -347,6 +347,14 @@ Channel* audio::get_channel(int index) {
return channels.at(index).get();
}
std::shared_ptr<Stream> audio::get_associated_stream(speakerid_t id) {
auto found = streams.find(id);
if (found != streams.end()) {
return found->second;
}
return nullptr;
}
size_t audio::count_speakers() {
return speakers.size();
}