# 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 Summary

  Modifier and Type
  Method
  Description
  `void`
  `setVoiceCompletionListener(VoiceCompletionListener listener)`
  Sets the listener notified as each voice completes (null to clear).

  ### Methods inherited from interface SoundPoolPeer

  `autoPause, autoResume, loadSound, loadSound, pauseVoice, play, release, resumeVoice, setPan, setRate, setVolume, stopAll, stopVoice, unloadSound`

- ## Method Details

  - ### setVoiceCompletionListener

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