효과음을 넣고 밑에 버튼 을 계속 누르면 효과음이 중간에 아예 안나온다 계속 뭘만져야합니까 ㅠㅠㅠ
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);
}
});
버튼>public void onClick(View v) {
Intent intent = new Intent(getApplicationContext(),Main2Activity.class);
startActivity(intent);
finish();
}
});
화면 전환되면서 그 전 화면 날라가서 그렁거 아님? 스테틱으로 사운그 올려봐