MCPcopy Create free account
hub / github.com/android/ndk-samples / _checkError

Function _checkError

endless-tunnel/app/src/main/cpp/sfxman.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static bool _checkError(SLresult r, const char* what) {
33 if (r != SL_RESULT_SUCCESS) {
34 LOGW("SfxMan: Error %s (result %lu)", what, (long unsigned int)r);
35 LOGW("DISABLING SOUND!");
36 return true;
37 }
38 return false;
39}
40
41static void _bqPlayerCallback(SLAndroidSimpleBufferQueueItf, void*) {
42 _bufferActive = false;

Callers 1

SfxManMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected