我的资产文件夹中都有所有音频,它们都是.ogg,由资产管理器加载,但有时我在Android上安装了apk,这会向我抛出错误消息:
E / ExtMediaPlayer-JNI:env-> IsInstanceOf失败 E / MediaPlayer-JNI:JNIMediaPlayerFactory:bIsQCMediaPlayerPresent 0 E / ExtMediaPlayer-JNI:env-> IsInstanceOf失败 E / MediaPlayer-JNI:JNIMediaPlayerFactory:bIsQCMediaPlayerPresent 0 D / MediaPlayer:MediaPlayer中的setSubtitleAnchor D / MediaPlayer:MediaPlayer中的setSubtitleAnchor E / ExtMediaPlayer-JNI:env-> IsInstanceOf失败 E / MediaPlayer-JNI:JNIMediaPlayerFactory:bIsQCMediaPlayerPresent 0 E / ExtMediaPlayer-JNI:env-> IsInstanceOf失败 E / MediaPlayer-JNI:JNIMediaPlayerFactory:bIsQCMediaPlayerPresent 0 D / MediaPlayer:MediaPlayer中的setSubtitleAnchor D / MediaPlayer:MediaPlayer中的setSubtitleAnchor E / ExtMediaPlayer-JNI:env-> IsInstanceOf失败 E / MediaPlayer-JNI:JNIMediaPlayerFactory:bIsQCMediaPlayerPresent 0 E / ExtMediaPlayer-JNI:env-> IsInstanceOf失败 E / MediaPlayer-JNI:JNIMediaPlayerFactory:bIsQCMediaPlayerPresent 0 D / MediaPlayer:MediaPlayer中的setSubtitleAnchor D / MediaPlayer:MediaPlayer中的setSubtitleAnchor I / QComExtractorFactory:嗅探:设置密钥以使用qti解析器 I / ExtendedExtractor:ExtendedExtractor :: create 0x0
当我退出一些auidios时,它已修复,但是当我再次安装apk时,它向我显示了另一个auidio的另一个异常,该异常在正确加载之前已出现,但现在由于此错误而失败。为什么? 我试图解决将mp3文件转换为ogg文件的问题,并修复了一段时间的负载...但是当我用android studio重新安装apk时,其他音频文件在正确加载之前再次抛出异常,再次。而且这只发生在音频文件中,同一文件夹中的png图像加载得很好。 (我在资产文件夹中保存的每个音频都是相同的,有时一个音频不加载,有时另一个音频。)
我为音频收费的代码的一部分:
public class MainGame extends Game { private AssetManager manager; private BaseScreen menu, levels, game; protected int Height, Width; private boolean isLoaded = false; private Texture pez; @Override public void create () { manager = new AssetManager(); manager.load("cubopez.png", Texture.class); manager.load("menu.png", Texture.class); manager.load("levels.png", Texture.class); manager.load("playButton.png", Texture.class); manager.load("background1.png", Texture.class); manager.load("background2.png", Texture.class); manager.load("background3.png", Texture.class); manager.load("winscreen.png", Texture.class); manager.load("cubopezgrade1.png", Texture.class); manager.load("cubopezgrade2.png", Texture.class); manager.load("cubopezgrade3.png", Texture.class); manager.load("cubopezgrade4.png", Texture.class); manager.load("cubopezgrade5.png", Texture.class); manager.load("cubopezgrade6.png", Texture.class); manager.load("cubopezgrade7.png", Texture.class); manager.load("supercubopez.png", Texture.class); manager.load("supercubopez1.png", Texture.class); manager.load("supercubopez2.png", Texture.class); manager.load("supercubopez3.png", Texture.class); manager.load("supercubopez4.png", Texture.class); manager.load("supercubopez5.png", Texture.class); manager.load("supercubopez6.png", Texture.class); manager.load("supercubopez7.png", Texture.class); manager.load("supercubopez8.png", Texture.class); manager.load("rubik8bits.png", Texture.class); manager.load("alga1.png", Texture.class); manager.load("alga2.png", Texture.class); manager.load("alga3.png", Texture.class); manager.load("alga4.png", Texture.class); manager.load("mar.png", Texture.class); manager.load("cementerio.png", Texture.class); manager.load("nieve.png", Texture.class); manager.load("martick.png", Texture.class); manager.load("cementeriotick.png", Texture.class); manager.load("nievetick.png", Texture.class); manager.load("mistery.png", Texture.class); manager.load("barradavidavacia.png", Texture.class); manager.load("barradavida1.png", Texture.class); manager.load("barradavida2.png", Texture.class); manager.load("barradavida3.png", Texture.class); manager.load("barradavida4.png", Texture.class); manager.load("barradavida5.png", Texture.class); manager.load("barradavida6.png", Texture.class); manager.load("barradavida7.png", Texture.class); manager.load("barradavida8.png", Texture.class); manager.load("barradavida9.png", Texture.class); manager.load("barradavida10.png", Texture.class); manager.load("barradavidavaciaboss.png", Texture.class); manager.load("barradavida1boss.png", Texture.class); manager.load("barradavida2boss.png", Texture.class); manager.load("barradavida3boss.png", Texture.class); manager.load("barradavida4boss.png", Texture.class); manager.load("barradavida5boss.png", Texture.class); manager.load("barradavida6boss.png", Texture.class); manager.load("barradavida7boss.png", Texture.class); manager.load("barradavida8boss.png", Texture.class); manager.load("barradavida9boss.png", Texture.class); manager.load("barradavida10boss.png", Texture.class); manager.load("rubik8bitsscrambled.png", Texture.class); manager.load("cubopezmuerto.png", Texture.class); manager.load("neodimio.png", Texture.class); manager.load("skeltoncubopez.png", Texture.class); manager.load("gameover.png", Texture.class); manager.load("ghostfish.png", Texture.class); manager.load("titulo.png", Texture.class); manager.load("tiburon.png", Texture.class); manager.load("tiburon2.png", Texture.class); manager.load("nado.ogg", Sound.class); manager.load("punch.ogg", Sound.class); manager.load("boss.png", Texture.class); manager.load("copo.png", Texture.class); manager.load("copo2.png", Texture.class); manager.load("copo3.png", Texture.class); manager.load("estalactita.png", Texture.class); manager.load("bubble.png", Texture.class); manager.load("bubble2.png", Texture.class); manager.load("bubble3.png", Texture.class); manager.load("bossbackground.png", Texture.class); manager.load("darkcubopez.png", Texture.class); manager.load("mirror.png", Texture.class); manager.load("powerup.ogg", Sound.class); manager.load("music1.ogg", Music.class); manager.load("fight.ogg", Music.class); manager.load("winter.ogg", Music.class); manager.load("music2.ogg", Music.class); manager.load("winsound.ogg", Music.class); manager.load("gameoversound.ogg", Sound.class); manager.load("pyraminx.png", Texture.class); manager.load("info.png", Texture.class); manager.load("pyraminxscrambled.png", Texture.class); manager.load("mirrorcube.png", Texture.class); manager.load("mirrorscrambled.png", Texture.class); manager.load("megaminx.png", Texture.class); manager.load("megaminxscrambled.png", Texture.class); manager.load("menusound.ogg", Music.class); manager.finishLoading();