commit | 83fb84498b8a83865e285ee84c253454c6f0a25b | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Thu Oct 05 16:55:17 2017 -0700 |
committer | Phil Burk <philburk@google.com> | Thu Oct 26 09:56:30 2017 -0700 |
tree | eb6ae9c94678b17d316099d68c2d9faa55cb6def | |
parent | 5b769acf63bb78197c39f9930133c7f79cfdffd2 [diff] [blame] |
aaudio: fix small underflow when a stream is stopped Also remove inconsequential volume parameter. Bug: 67910437 Test: test_aaudio_monkey.cpp and write_sine_callback.cpp Change-Id: I6d11f3bfced3d579440f99c02d01a7d68af5c1e0
diff --git a/services/oboeservice/AAudioServiceStreamBase.cpp b/services/oboeservice/AAudioServiceStreamBase.cpp index e670129..6246e7e 100644 --- a/services/oboeservice/AAudioServiceStreamBase.cpp +++ b/services/oboeservice/AAudioServiceStreamBase.cpp
@@ -231,6 +231,8 @@ return AAUDIO_ERROR_INVALID_STATE; } + setState(AAUDIO_STREAM_STATE_STOPPING); + sendCurrentTimestamp(); // warning - this calls a virtual function result = stopTimestampThread(); if (result != AAUDIO_OK) {