提问人:lucignolo 提问时间:9/2/2023 更新时间:9/2/2023 访问量:27
Soundpool 和 API33
Soundpool and API33
问:
我正在尝试使用 API33 模拟器测试我的旧 apk,但声音不起作用,直到 API31 效果很好。
bt_sound = (ImageButton) findViewById(R.id.btn_sound);
bt_sound.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
soundPool.play(soundDrinn, volume, volume, 1, 0, 1f);}
});
LogCat 按下上面的按钮:
2023-09-02 16:19:29.966 379-4425/? E/[email protected]: device/generic/goldfish/audio/talsa.cpp:mixerGetOrOpenImpl:58 failure: nullptr
2023-09-02 16:19:29.966 379-4425/? E/[email protected]: pcmOpen:169 pcm_open failed for nChannels=2 sampleRateHz=48000 period_count=4 period_size=1056 isOut=1 with cannot open device (0) for card (0): No such file or directory
2023-09-02 16:19:29.966 379-4425/? E/[email protected]: device/generic/goldfish/audio/talsa.cpp:pcmOpen:172 failure: nullptr
2023-09-02 16:19:29.966 379-4425/? E/[email protected]: device/generic/goldfish/audio/device_port_sink.cpp:create:228 failure: nullptr
答: 暂无答案
评论