Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenLoco/OpenLoco
/ resetSoundObjects
Function
resetSoundObjects
src/OpenLoco/src/Audio/Audio.cpp:563–570 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
561
}
562
563
void resetSoundObjects()
564
{
565
for (auto& [_, buf] : _objectSamples)
566
{
567
unloadBuffer(buf);
568
}
569
_objectSamples.clear();
570
}
571
572
bool isAudioEnabled()
573
{
Callers
1
importSaveToGameState
Function · 0.85
Calls
2
unloadBuffer
Function · 0.85
clear
Method · 0.45
Tested by
no test coverage detected