2016-12-12 12 views

답변

0

stop 메서드는 soundID에 의해 soundPool을 streemingId no로 중지합니다. 다음 코드를 추가해야합니다.

int streamingId; 
protected void gPlaySound(){ 
    streamingId = globalSoundPool.play(globalSoundIDCoin, gVolume, gVolume, 1, -1, (float) 2.0); 
} 
public void gStop() { 
     globalSoundPool.stop(streamingId); 
    }