個別遊戲鎖屏,耳朵貼近speaker會有底噪

2021-10-05 19:54:08 字數 1626 閱讀 7446

您好,在 bsp only版本上試了,

1 進入《植物大戰殭屍》:

galahad:/ $ logcat | grep -e 「startoutput|stopoutput」

04-29 15:28:32.947 533 801 v audiopolicyintefaceimpl: startoutput()

04-29 15:28:32.947 533 801 d apm_audiopolicymanager: startoutput() output 13, stream 3, session 57

04-29 15:28:32.956 491 3715 d audioalsahardwareresourcemanager: +startoutputdevice(), new_devices = 0x2, moutputdevices = 0x0, mstartoutputdevicescount = 0 samplerate = 48000

2將遊戲調到後台,或者鎖屏

galahad:/ $ logcat | grep -e 「startoutput|stopoutput」

無log

3將遊戲在後台,remove 掉;

galahad:/ $ logcat | grep -e 「startoutput|stopoutput」

04-29 15:35:54.695 533 1103 v audiopolicyintefaceimpl: stopoutput()

04-29 15:35:54.696 533 686 d apm_audiopolicymanager: stopoutput portid 29

04-29 15:35:54.696 533 686 d apm_audiopolicymanager: stopoutput() output 13, stream 3, session 81

04-29 15:35:57.545 491 538 d audioalsahardwareresourcemanager: +stopoutputdevice(), moutputdevices = 0x2, mstartoutputdevicescount = 1

是不是說明,現在的喇叭貼近耳朵聽到的底雜訊是《植物大戰殭屍》遊戲的問題呢(沒有關閉通路)?

您說的wite error 的錯誤是如下的嗎?

./debuglogger/mobilelog/aplog_2020_0423_113334__10/main_log_1__2020_0423_113833:69315:04-23 11:38:10.678804 495 6294 e audioalsaplaybackhandle***st: write(), pcm_write() error, retval = -1

./debuglogger/mobilelog/aplog_2020_0423_113334__10/main_log_1__2020_0423_113833:69318:04-23 11:38:10.682759 495 6294 e audioalsaplaybackhandle***st: write(), pcm_write() error, retval = -1

在bsp版本上沒有發現如上的log列印;

看到的log結果,就是植物大戰殭屍的audiotrack一直沒有stop,所以喇叭通路一直開著,喇叭是能夠聽到底噪音的。

iOS 橫豎屏的切換以及個別介面橫屏

進入正文前先認識幾個概念 portrait 豎屏 home鍵在下邊 upside down 豎屏 home鍵在上邊 landscape 橫屏 landscape left 橫屏home鍵在左邊 landscape right 橫屏home鍵在右邊 1 先讓視窗支援橫豎屏 兩種方法可以修改視窗對橫豎屏...

亮屏 黑屏 解鎖 鎖屏

亮屏黑屏解鎖鎖屏 private static powermanager.wakelock scpuwakelock private static keyguardmanager.keyguardlock slock 亮屏static void acquirecpuwakelock context ...

windows phone編碼鎖屏

適用於 僅限於 windows phone 8。windows phone os 7.1 中的鎖定螢幕包含少量通知,如 outlook 新郵件和新文字訊息的數量。在 windows phone 8 中,應用使用者可以選擇使用其所選的任意符合條件的第三方應用自定義該區域。您可以將應用設計為使用者可以選...