MCPcopy Create free account
hub / github.com/TurningWheel/Barony / FMODErrorCheck

Function FMODErrorCheck

src/engine/audio/sound.cpp:47–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45#ifdef USE_FMOD
46
47bool FMODErrorCheck()
48{
49 if (no_sound)
50 {
51 return false;
52 }
53 if (fmod_result != FMOD_OK)
54 {
55 printlog("[FMOD Error] Error Code (%d): \"%s\"\n", fmod_result, FMOD_ErrorString(fmod_result)); //Report the FMOD error.
56 return true;
57 }
58
59 return false;
60}
61
62void setAudioDevice(const std::string& device) {
63 int selected_driver = 0;

Callers 14

physfsReloadSoundsFunction · 0.85
playSoundPosLocalFunction · 0.85
playSoundFunction · 0.85
playSoundNotificationFunction · 0.85
initRecordingMethod · 0.85
updateRecordingMethod · 0.85
deinitMethod · 0.85
playSongMethod · 0.85
setupMethod · 0.85
initSoundEngineFunction · 0.85
loadSoundResourcesFunction · 0.85

Calls 1

printlogFunction · 0.85

Tested by

no test coverage detected