Interface CompletionAwareSoundPoolPeer

All Superinterfaces:
SoundPoolPeer

public interface CompletionAwareSoundPoolPeer extends SoundPoolPeer
An optional capability a SoundPoolPeer may implement to report when its voices finish playing. com.codename1.gaming.SoundPool checks for it with instanceof and wires its com.codename1.gaming.VoiceListener through it; peers that do not implement it simply never report completion.
  • Method Details

    • setVoiceCompletionListener

      void setVoiceCompletionListener(VoiceCompletionListener listener)
      Sets the listener notified as each voice completes (null to clear).