Android screenshot--desktop simultaneously hold power and volume-screenshot-screenshot no Sound

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.