コード例 #1
0
 public void stopRecording() {
   recorder.stopRecording();
   if (PreferenceManager.getInstance().getPreference(PreferenceManager.PLAY_PLAYBACK_KEY) == 1) {
     SoundMixer.getInstance().stopAllSoundInSoundMixerAndRewind();
   } else if (PreferenceManager.getInstance()
           .getPreference(PreferenceManager.METRONOM_VISUALIZATION_KEY)
       > 0) {
     SoundMixer.getInstance().stopMetronom();
   }
 }
コード例 #2
0
 private void checkAndStartPlaybackAndMetronom() {
   int metronom =
       PreferenceManager.getInstance().getPreference(PreferenceManager.METRONOM_VISUALIZATION_KEY);
   if (PreferenceManager.getInstance().getPreference(PreferenceManager.PLAY_PLAYBACK_KEY) == 1) {
     if (!SoundMixer.getInstance().playAllSoundsInSoundmixer() && metronom > 0) {
       SoundMixer.getInstance().startMetronom();
     }
   } else if (metronom > 0) {
     SoundMixer.getInstance().startMetronom();
   }
 }