mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix some wrong asserts (we don't use <cassert>)
This commit is contained in:
1 parent
5c4a227b73
commit
572a2e48f6
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user