E/AudioEffect: set(): AudioFlinger could not create effect, status: -1

E/AudioEffect: set(): AudioFlinger could not create effect, status: -1
E/libOpenSLES: Effect initCheck() returned -1
E/libOpenSLES: EnvironmentalReverb effect initialization failed
W/libOpenSLES: Leaving EnvironmentalReverb::SetEnvironmentalReverbProperties (SL_RESULT_CONTROL_LOST)
E/AudioTrack: AudioTrack::set : Exit

确认AndroidManifest添加了以下权限

<!-- RECORD_AUDIO is needed to create an audio recorder -->
    <uses-permission android:name="android.permission.RECORD_AUDIO"></uses-permission>

    <!-- MODIFY_AUDIO_SETTINGS is needed to use audio effects such as environmental reverb -->
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>

    <!-- INTERNET is needed to use a URI-based audio player, depending on the URI -->
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    原文作者:Aaglnny
    原文地址: https://www.jianshu.com/p/9baddffc2e57
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞