MCPcopy Create free account
hub / github.com/atraczyk/2d-engine / PlayMusic

Method PlayMusic

engine/src/sound.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void Sound::PlayMusic(SOUND_ID sound_id)
54{
55#if defined(USE_FMOD)
56 system->playSound(FMOD_CHANNEL_FREE, sounds[sound_id], false, &musicChannel);
57 musicChannel->setVolume(masterVolume * musicVolume);
58#endif
59}
60
61void Sound::PlaySfx(SOUND_ID sound_id)
62{

Callers 1

G_loadLevelFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected