Problem Description:
"Test Steps" 1, the desktop simultaneously press and hold power and volume-
"Test Result" no sound
"Expected result" should not have no sound
This is a Google common problem for the following reasons:
Decode does not complete when first capture.
Solution:for Audio Sound pool case, skip EOS delay time-to-faster to send-out EOS.
Modified Location: Frameworks/av/media/libstagefright/awesomeplayer.cpp
void Awesomeplayer::p ostcheckaudiostatusevent (int64_t delayus) { mutex::autolock autolock (maudiolock); if (maudiostatuseventpending) { return; } Maudiostatuseventpending = true; Do no honor delay when looping in order to limit audio gap if (Mflags & (Looping | auto_looping)) { Delayus = 0; } #ifdef mtk_aosp_enhancement //audiocache Needn ' t delay post EOS, just audiooutput which with a valid UID needed if (!muidvalid) { alogi ("Audiocache needn ' t delay post EOS!!!"); <2015.05.07> Modify for start Delayus = 0; <2015.05.07> Modify for End } #endif Mqueue.posteventwithdelay (mcheckaudiostatusevent, Delayus);}
Delayus = 3000; change to Delayus = 0;
Android screenshot--desktop simultaneously press and hold power and volume--no sound