Skip to content

Android 16.0 系统下,AudioSource.play() 长音频流进度正常但完全无声 #19149

@ZG-NO1

Description

@ZG-NO1

Cocos Creator version

3.8.8

System information

windows 10 editor, Android 16.0 on Android Studio simulator

Issue description

在 Android 16 系统上,使用 AudioSource.play() 播放一段30秒的长音频(背景音乐 MP3)。
现象1:完全没有声音。但是通过代码打印 currentTime,发现时间在正常增加,playing 状态也为 true。
现象2:用 adb logcat -s Cocos Oboe AAudio OpenSLES 抓取日志,没有任何 error 或 exception 报错。
现象3(关键):如果更换为只有1秒的极短音效,调用 play() 能正常出声!

推测原因:
Android 16 底层 IO 策略或解码器发生变更,导致 Cocos 引擎 Native 层对大文件的流式读取(Streaming) 发生了静默失效(读到的全是空数据所以无声且不报错)

Relevant error log output

No response

Steps to reproduce

在 Android 16 系统上,使用 AudioSource.play() 播放一段30秒的长音频(背景音乐 MP3)。

Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageNeeds to be assigned by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions