0
andEngine을 사용하여 게임을 개발 중입니다. 이 게임에 배경 사운드를 추가하고 싶습니다. 사운드 구현을 시도했지만 사운드가 재생되지 않습니다. pls 날 도와.andEngine의 사운드 문제
onLoadEngine()
return new Engine(new EngineOptions(true, ScreenOrientation.LANDSCAPE,
new FillResolutionPolicy(), this.mCamera).setNeedsSound(true))
onLoadResources()는 onCreateScene()
방법
Sound bgSound;
SoundFactory.setAssetBasePath("gfx/");
this.bgSound = SoundFactory.createSoundFromAsset(this.mEngine.getSoundManager(), this, "bg.mid");
bgSound.setLoopCount(-1);
bgSound.play();
사운드 파일이 assets/gfx 폴더에 있습니까? – IncrediApp
예 .it는 assets/gfx 폴더에 있습니다. – Andy
setloopcount를 움직여서 onCreateScene 호출을 재생합니다. – IncrediApp