音频文件在安卓原生平台读取失败,Web版本都可以正常播放
Creator版本:1.9.0
用eclipse进行的调试,真机型号:OPPO R7sm , 华为荣耀8
播放音频的方式是用动态加载播放的
播放音频时的报错日志
这是什么问题,下面附上日志的文本:
09-19 09:32:32.762: D/AudioTrack(7197): fast flags should NOT be set for music stream… flags: 4
09-19 09:32:32.762: W/AudioFlinger(348): createEffect() error -2 from EffectGetDescriptor
09-19 09:32:32.762: E/AudioEffect(348): set(): AudioFlinger could not create effect, status: -2
09-19 09:32:32.762: E/AudioPolicyEffects(348): addOutputSessionEffects(): failed to create Fx dirac_music on session 1464
09-19 09:32:32.762: D/AudioPolicyManager(348): notifyAudioEffect start
09-19 09:32:32.762: E/AudioPolicyManager(348): AudioEffect socket connect fail err Connection refused
09-19 09:32:32.762: E/AudioEngineImpl(7197): Failed to open file descriptor for ‘res/raw-assets/resources/sounds/btn_click.mp3’
09-19 09:32:32.762: E/AudioPlayerProvider(7197): Failed to open file descriptor for ‘assets/res/raw-assets/resources/sounds/btn_click.mp3’
09-19 09:32:32.762: E/AudioPlayerProvider(7197): File info is invalid, path: assets/res/raw-assets/resources/sounds/btn_click.mp3
09-19 09:32:32.762: E/AudioEngineImpl(7197): Oops, player is null …
09-19 09:32:32.772: W/audio_hw_utils(348): audio_extn_utils_update_stream_app_type_cfg: App type could not be selected. Falling back to default
09-19 09:32:32.772: I/audio_hw_primary(348): select_devices Selected apptype: 69936
09-19 09:32:32.772: E/audio_hw_dolby(348): audio_extn_dolby_ds2_set_endpoint: Dolby set endpint :0x2
09-19 09:32:32.772: V/sound_trigger_hw(348): handle_audio_concurrency: Enter, event type = 3
09-19 09:32:32.772: D/sound_trigger_platform(348): platform_stdev_check_and_update_concurrency: concurrency active 0, tx 0, rx 1, concurrency session_allowed 1
09-19 09:32:32.772: I/audio_hw_utils(348): audio_extn_utils_send_app_type_cfg app_type 69936, acdb_dev_id 15, sample_rate 48000
09-19 09:32:32.802: E/audio_hw_primary(348): out_write: try to tfa9890_SpeakerOn() for deep buffer playback