MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Sound_CheckBASSError

Function Sound_CheckBASSError

TombEngine/Sound/sound.cpp:1133–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131}
1132
1133bool Sound_CheckBASSError(const char* message, bool verbose, ...)
1134{
1135 va_list argptr;
1136 static char data[4096];
1137
1138 int bassError = BASS_ErrorGetCode();
1139 if (verbose || bassError)
1140 {
1141 va_start(argptr, verbose);
1142 int written = vsprintf(data, (char*)message, argptr); // @TODO: replace with debug/console/message output later...
1143 va_end(argptr);
1144 snprintf(data + written, sizeof(data) - written, ": %s", Sound_GetBassErrorString(bassError));
1145 TENLog(data, bassError ? LogLevel::Error : LogLevel::Info);
1146 }
1147 return bassError != 0;
1148}
1149
1150void SayNo(std::optional<Vector3i> referencePosition)
1151{

Callers 5

SoundEffectFunction · 0.85
PlaySoundTrackFunction · 0.85
Sound_VideoPlayCallbackFunction · 0.85
Sound_VideoFlushCallbackFunction · 0.85
Sound_InitFunction · 0.85

Calls 3

vsprintfFunction · 0.85
Sound_GetBassErrorStringFunction · 0.85
TENLogFunction · 0.85

Tested by

no test coverage detected