| 30 | } |
| 31 | |
| 32 | static 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 | |
| 41 | static void _bqPlayerCallback(SLAndroidSimpleBufferQueueItf, void*) { |
| 42 | _bufferActive = false; |