Interface VoiceListener
public interface VoiceListener
Notified when a voice started with SoundPool#play(SoundEffect) finishes playing
(best effort). Register one with SoundPool#setVoiceListener(VoiceListener); the
callback is delivered on the EDT.
Completion is reported by the cross-platform fallback mixer. Some purpose-built
native engines -- notably Android's android.media.SoundPool, which exposes no
per-stream completion event -- cannot report it; check
SoundPool#isVoiceCompletionSupported() to find out.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(int voiceId) Called when the given voice id has finished on its own (it was not looping and was not stopped early).
-
Method Details
-
onComplete
void onComplete(int voiceId) Called when the given voice id has finished on its own (it was not looping and was not stopped early).
-