Fix some wrong asserts (we don't use <cassert>)

This commit is contained in:
Henrik Rydgård committed 2020-11-19 19:38:37 +01:00
1 parent 5c4a227b73
commit 572a2e48f6
1 file changed
+2 -2
+2 -2
View File
@@ -243,7 +243,7 @@ int OpenSLContext::AudioRecord_Start(int sampleRate) {
}
result = (*recorderRecord)->SetRecordState(recorderRecord, SL_RECORDSTATE_RECORDING);
assert(SL_RESULT_SUCCESS == result);
_assert_(SL_RESULT_SUCCESS == result);
return true;
}
@@ -251,7 +251,7 @@ int OpenSLContext::AudioRecord_Start(int sampleRate) {
int OpenSLContext::AudioRecord_Stop() {
if (recorderRecord != nullptr) {
SLresult result = (*recorderRecord)->SetRecordState(recorderRecord, SL_RECORDSTATE_STOPPED);
assert(SL_RESULT_SUCCESS == result);
_assert_(SL_RESULT_SUCCESS == result);
}
if (recorderObject != nullptr) {
(*recorderObject)->Destroy(recorderObject);