| 45 | #ifdef USE_FMOD |
| 46 | |
| 47 | bool 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 | |
| 62 | void setAudioDevice(const std::string& device) { |
| 63 | int selected_driver = 0; |
no test coverage detected