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
5
namespace
sbk::engine
6
{
7
class
system;
8
9
namespace
Profiling
10
{
14
class
SB_CLASS
VoiceTracker
final
15
{
16
public
:
17
VoiceTracker
();
18
~VoiceTracker
() =
default
;
19
20
static
VoiceTracker
* get();
21
22
public
:
23
void
update(
system
*
system
);
24
25
public
:
26
unsigned
int
getPlayingCountOfObject(sbk_id
id
)
const
;
27
28
private
:
29
std::unordered_set<sbk_id> m_playingNodeIDs;
30
std::unordered_map<sbk_id, unsigned int> m_nodePlayingCount;
31
};
32
}
// namespace Profiling
33
}
// namespace sbk::engine
sbk::engine::Profiling::VoiceTracker
Tracks every active voice with helper functions.
Definition
voice_tracker.h:15
sbk::engine::system
Manager of the whole sound Bakery.
Definition
system.h:44
src
sound_bakery
profiling
voice_tracker.h
Generated by
1.9.8