Loading media/libaudioclient/tests/audiosystem_tests.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -49,12 +49,18 @@ class AudioSystemTest : public ::testing::Test { void TearDown() override { if (mPlayback) { mPlayback->stop(); mPlayback->getAudioTrackHandle()->removeAudioDeviceCallback(mCbPlayback); if (auto handle = mPlayback->getAudioTrackHandle(); handle) { handle->removeAudioDeviceCallback(mCbPlayback); } mCbPlayback.clear(); mPlayback.clear(); } if (mCapture) { mCapture->stop(); mCapture->getAudioRecordHandle()->removeAudioDeviceCallback(mCbRecord); if (auto handle = mCapture->getAudioRecordHandle(); handle) { handle->removeAudioDeviceCallback(mCbRecord); } mCbRecord.clear(); mCapture.clear(); } } Loading Loading
media/libaudioclient/tests/audiosystem_tests.cpp +8 −2 Original line number Diff line number Diff line Loading @@ -49,12 +49,18 @@ class AudioSystemTest : public ::testing::Test { void TearDown() override { if (mPlayback) { mPlayback->stop(); mPlayback->getAudioTrackHandle()->removeAudioDeviceCallback(mCbPlayback); if (auto handle = mPlayback->getAudioTrackHandle(); handle) { handle->removeAudioDeviceCallback(mCbPlayback); } mCbPlayback.clear(); mPlayback.clear(); } if (mCapture) { mCapture->stop(); mCapture->getAudioRecordHandle()->removeAudioDeviceCallback(mCbRecord); if (auto handle = mCapture->getAudioRecordHandle(); handle) { handle->removeAudioDeviceCallback(mCbRecord); } mCbRecord.clear(); mCapture.clear(); } } Loading