コード例 #1
0
ファイル: Sound.java プロジェクト: najunhee/propose-lib
 @Override
 public void onLoadComplete(SoundPool soundPool, int sampleId, int status) {
   if (loadSoundMap.containsKey(sampleId)) {
     SoundInfo info = soundMap.get(loadSoundMap.get(sampleId));
     info.setSoundId(sampleId);
     if (status == 0) {
       info.setComplete(true);
     } else {
       info.setComplete(false);
     }
     loadSoundMap.remove(sampleId);
   }
   if (loadSoundMap.size() == 0) {
     completeListener.onAllComplete();
   }
 }