mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
audio streams: getTime fix
This commit is contained in:
parent
cea4867567
commit
6874e3c812
5 changed files with 56 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue