Interface CompletionAwareSoundPoolPeer
- All Superinterfaces:
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 TypeMethodDescriptionvoidSets 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
Sets the listener notified as each voice completes (null to clear).
-