@Override public void stop (long soundId) { soundPool.stop((int)soundId); }
@Override public void stop (long soundId) { soundPool.stop((int)soundId); }
public void stop () { for (int i = 0, n = streamIds.size; i < n; i++) soundPool.stop(streamIds.get(i)); }
public void stop () { for (int i = 0, n = streamIds.size; i < n; i++) soundPool.stop(streamIds.get(i)); }
public void run() { if(!mKillSoundQueue.isEmpty()){ mSoundPool.stop(mKillSoundQueue.firstElement());
int streamId = testSoundPool.play(soundId, 0, 0, 0, 0, 1.0f); if (streamId>0) { // successful testSoundPool.stop(streamId); onLoadComplete(testSoundPool, soundId, 0); completedOnes.add(soundId);
@Override protected void stopImpl() { if (streamId != 0) { pool.stop(streamId); streamId = 0; } }
public void stop() { if ((mPlayer != null) && (mSoundID != 0)) { mPlayer.stop(mSoundID); } }
@Override protected void stopImpl() { if (streamId != 0) { pool.stop(streamId); streamId = 0; } }
public void stop() { if ((mPlayer != null) && (mSoundID != 0)) { mPlayer.stop(mSoundID); } }
/** * release SoundPool */ public static void release() { if (soundPool != null) { soundPool.stop(soundID); } soundPool = null; } }
@Override protected void stopImpl() { if (streamId != 0) { pool.stop(streamId); streamId = 0; } }
public void stopRinging() { if (playing) { soundPool.stop(ringingStreamId); playing = false; } }
@Override public void run() { if (mSoundPool != null) { int streamid = getSteamId(assetsFilePath, 0); mSoundPool.stop(streamid); } } }).start();
public void stopEndlessAlarm() { try { if (mLoopingSoundId != -1) soundPool.stop(mLoopingSoundId); mLoopingSoundId = -1; } catch (Exception ignored) { } }
public void stopSound(int streamID) { // If the stream is not playing, it will have no effect. soundPool.stop(streamID); }
public void pararTodosOsSons() { while (mSonsEmExecucao.size() > 0) { mSoundPool.stop(mSonsEmExecucao.pop()); } } public void liberarRecursos() {
public void stopSound(int soundID) { if (plays) { soundPool.stop(soundID); soundID = soundPool.load(context, soundID, priority); plays = false; } }
/** * Para os sons */ public void stopSound() { this.sound.stop(this.soundValue); this.sound.release(); } }
private void play(int soundId) { if (isPlaying()) { return; } if (mAudioManager.getRingerMode() != AudioManager.RINGER_MODE_SILENT) { mSoundPool.stop(soundId); mSoundPool.play(soundId, 1f, 1f, 0, 0, 1f); } }