frameworks/av/media$
Fix the problem of playing a short audio
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index b1c46df99f..a3f5787237 100755
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3315,7 +3315,7 @@ bool AudioFlinger::PlaybackThread::threadLoop()
continue;
}
- if ((!mActiveTracks.size() && systemTime() > mStandbyTimeNs) ||
+ if (/*(!mActiveTracks.size() && systemTime() > mStandbyTimeNs) ||*/
isSuspended()) {
// put audio hardware into standby after short delay
if (shouldStandby_l()) {
Android9.0播放简短提示音问题
于 2022-12-02 15:13:53 首次发布