MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / LoadSound

Function LoadSound

Source/Main/altmain.cpp:90–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void LoadSound(const char* path, const char* data) {
91 LOGI << "Loading Sound file \"" << path << "\"" << std::endl;
92 SoundPlayInfo spi;
93 spi.path = std::string("Data/Sounds/weapon_foley/cut/") + path;
94 Sound sound("");
95 unsigned long handle = sound.CreateHandle();
96 sound.Play(handle, spi);
97 SDL_Delay(1000);
98}
99
100void LoadSoundGroupZipFile(const std::string& path) {
101 ExpandedZipFile ezf;

Callers 1

LoadSoundGroupZipFileFunction · 0.85

Calls 2

CreateHandleMethod · 0.45
PlayMethod · 0.45

Tested by

no test coverage detected