aaudio: add AAudioStream_release()
Split close into close and release phases. Release() will release hardware and service resources. Close() will delete the stream object. This allows us to defer the deletion and avoid race conditions. The CLOSING state is used to indicate that a stream has been released. Added some test cases to test_various.cpp. A lone call to close() will automatically call release() so we should have good code coverage for testing. Bug: 136288001 Test: adb shell test_various Test: atest CtsNativeMediaAAudioTestCases Change-Id: Ia648838f30c521ba101f55259dbcd4594c1263cd
Loading
Please register or sign in to comment