obtainBuffer() track 0x2e7580 disabled, restarting

來源:互聯網
上載者:User

問題???
obtainBuffer() track 0x2e7580 disabled, restarting
具體如下:
 W/AudioTrack(6469): obtainBuffer() track 0x2e6378 disabled, restarting
 W/AudioTrack(6469): obtainBuffer() track 0x2e6378 disabled, restarting
 W/AudioTrack(6469): obtainBuffer() track 0x2e6378 disabled, restarting
 W/AudioTrack(6469): obtainBuffer() track 0x2e6378 disabled, restarting
 W/AudioTrack(6469): obtainBuffer() track 0x2e6378 disabled, restarting
 W/AudioTrack(6469): obtainBuffer() track 0x2e6378 disabled, restarting
發生環境:
通過TCP擷取即時音頻流資料解碼後播放音頻,eclipse出現這種橙色警告語句,此時沒有聲音出來,過了一會兒正常播放音頻,這種情況下應用程式一般不會崩盤。

問題原因:www.2cto.com
在迴圈使用AudioTrack.write(byte[] audioData, int offsetInBytes, int sizeInBytes)寫入音頻資料時,由於網路原因和處理資料代碼邏輯亂的原因,音頻資料沒及時發送過來,這是

這個問題困惑了蠻久了,由於只是一個警告,優先順序不高,之前就放在那兒一直沒去研究它的原因,今天 播放是又出現這個問題,而且程式有時會崩在它出現之後,之前懷疑可能跟它有關係,就查了下。瞭解之後,原來跟它沒半毛錢關係。大膽猜測,小心仔細驗證。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.