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
SB::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(SB_ID
id
)
const
;
27
28
private
:
29
std::unordered_set<SB_ID> m_playingNodeIDs;
30
std::unordered_map<SB_ID, unsigned int> m_nodePlayingCount;
31
};
32
}
// namespace Profiling
33
}
// namespace SB::Engine
SB::Engine::Profiling::VoiceTracker
Tracks every active voice with helper functions.
Definition
voice_tracker.h:15
SB::Engine::System
Manager of the whole Sound Bakery.
Definition
system.h:34
src
sound_bakery
profiling
voice_tracker.h
Generated by
1.9.8