@Override public void pause () { soundPool.autoPause(); }
@Override public void pause () { soundPool.autoPause(); }
protected void pause () { if (soundPool == null) { return; } synchronized (musics) { for (AndroidMusic music : musics) { if (music.isPlaying()) { music.pause(); music.wasPlaying = true; } else music.wasPlaying = false; } } this.soundPool.autoPause(); }
protected void pause () { if (soundPool == null) { return; } synchronized (musics) { for (AndroidMusic music : musics) { if (music.isPlaying()) { music.pause(); music.wasPlaying = true; } else music.wasPlaying = false; } } this.soundPool.autoPause(); }
public void pauseShortSounds() { synchronized (soundPoolLock) { for (SoundPoolContainer container : soundPoolMap.values()) { container.soundPool.autoPause(); } } }
public void pause(int resId) { if (mediaPlayerMap.containsKey(resId)) { DoodleMediaPlayer mediaPlayer = mediaPlayerMap.get(resId); if (mediaPlayer.isPlaying()) { mediaPlayer.pause(); } } else if (soundPoolMap.containsKey(resId)) { soundPoolMap.get(resId).soundPool.autoPause(); } }
public void pause() { if (pool != null) { pool.autoPause(); } }
public void pause() { if (pool != null) { pool.autoPause(); } }
public void autoPause() { soundPool.autoPause(); }
public void pause() { soundPool.autoPause(); pauseMusic(); }
public void onPause() { // handle our pooled sounds pool.autoPause(); // now handle our musics if (!playing.isEmpty()) AndroidPlatform.debugLog("Pausing " + playing.size() + " playing sounds."); for (AndroidSound<?> sound : playing) { sound.onPause(); } }
public void onPause() { // handle our pooled sounds pool.autoPause(); // now handle our musics if (!playing.isEmpty()) AndroidPlatform.debugLog("Pausing " + playing.size() + " playing sounds."); for (AndroidSound<?> sound : playing) { sound.onPause(); } }
public void onPause() { // handle our pooled sounds pool.autoPause(); // now handle our musics if (!playing.isEmpty()) AndroidPlatform.debugLog("Pausing " + playing.size() + " playing sounds."); for (AndroidSound<?> sound : playing) { sound.onPause(); } }
case MotionEvent.ACTION_UP: System.out.println("up"); sounds.autoPause(); break;
public void release() { soundPool.autoPause(); soundPool.release(); soundPool = null; isMusicReady = false; if(musicPlayer != null) musicPlayer.release(); musicPlayer = null; host.unregisterReceiver(noisyAudioStreamReceiver); host.unregisterReceiver(ringerModeReceiver); host.unregisterReceiver(headsetPlugReceiver); audioCEO.abandonAudioFocus(this); audioCEO = null; host = null; noFocus = true; }