Sound Bakery  v0.1.0
Open-source audio middleware for games
Loading...
Searching...
No Matches
voice_tracker.h
1#pragma once
2
3#include "sound_bakery/pch.h"
4
5namespace sbk::engine
6{
7 class system;
8
9 namespace profiling
10 {
14 class SB_CLASS voice_tracker final
15 {
16 public:
17 voice_tracker() = default;
18 ~voice_tracker() = default;
19
20 public:
21 void update(system* system);
22
23 public:
24 unsigned int getPlayingCountOfObject(sbk_id id) const;
25
26 private:
27 std::unordered_set<sbk_id> m_playingNodeIDs;
28 std::unordered_map<sbk_id, unsigned int> m_nodePlayingCount;
29 };
30 } // namespace profiling
31} // namespace sbk::engine
Tracks every active voice with helper functions.
Definition voice_tracker.h:15
Manager of the whole Sound Bakery.
Definition system.h:44