MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / LoadAudioObjects

Function LoadAudioObjects

src/openrct2/audio/Audio.cpp:100–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 void LoadAudioObjects()
101 {
102 auto& objManager = GetContext()->GetObjectManager();
103
104 Object* baseAudio = objManager.LoadObject(AudioObjectIdentifiers::kRCT2);
105 if (baseAudio != nullptr)
106 {
107 _soundsAudioObjectEntryIndex = objManager.GetLoadedObjectEntryIndex(baseAudio);
108 }
109
110 objManager.LoadObject(AudioObjectIdentifiers::kOpenRCT2Additional);
111 _soundsAdditionalAudioObjectEntryIndex = objManager.GetLoadedObjectEntryIndex(
112 AudioObjectIdentifiers::kOpenRCT2Additional);
113 objManager.LoadObject(AudioObjectIdentifiers::kRCT2Circus);
114 }
115
116 void PopulateDevices()
117 {

Callers 2

ObjectListLoadFunction · 0.85

Calls 3

GetContextFunction · 0.85
LoadObjectMethod · 0.45

Tested by

no test coverage detected