ogg를 사용한다.
1. ogg converter
Free Audio Converter
2. sound editor
Shuangs Audio Editor
3. free sound source
http://www.freesound.org
4. edit source
onCreateEngineOptions() {
....
engineOptions.getAudioOptions().setNeedsMusic(true);
return engineOptions;
}
onCreateResource() {
....
MusicFactory.setAssetBasePath("mfx/");
try {
this.mMusic = MusicFactory.createMusicFromAsset(
this.mEngine.getMusicManager(), this, "music.ogg");
this.mMusic.setLooping(true);
} catch (final IOException e) {
Debug.e(e);
}
}
onCreateScene() {
....
[project class name].this.mMusic.play();
return scene;
}
댓글 없음:
댓글 쓰기