액티비티가 열리면 효과음이 나게 되있는데 효과음이 계속 반복되다가 어느순간부터 안나온다
어떤애 말로는 객체를 초기화시키라는데 안된다 ㅠ 어떻게할까
sound_pool = new SoundPool(5, AudioManager.STREAM_MUSIC, 0);
final int sound_beep_alert= sound_pool.load(this, R.raw.epic, 1);
sound_pool.setOnLoadCompleteListener (new SoundPool.OnLoadCompleteListener() {
@Override
public void onLoadComplete(SoundPool soundPool, int soundId, int status) {
sound_pool.play(sound_beep_alert, 1f, 1f, 0, 0, 1f);
}
});
더추가할꺼있나..?
댓글 0