I have .ogg and .mp3 files in my Assets/Resources folder. Audio files play well. But playing any of them using the Audio Source component results in hundreds of error messages appearing in the log. I tried different audio files with same result.

Unfortunately I could not find the cause or solution to this problem. If you have an idea please help.

mp3 file codec info ogg file code info unity inspector audio clip unity inspector audio source logcat

20:08:40.813 Unity AndroidVideoMedia::DecodeAudio got unexpected buffer (-10000) for media track 0
20:08:40.813 NdkMediaCodec sf error code: -38
20:08:40.813 NdkMediaCodec sf error code: -38
0

There are 0 best solutions below