ch.aplu.util
Interface SoundPlayerListener

All Superinterfaces:
java.util.EventListener

public interface SoundPlayerListener
extends java.util.EventListener

The listener interface for receiving StreamingPlayer notification. The class that is interested in getting the notification either implements this interface and registers it with addPlayerListener().


Method Summary
 void notifySoundPlayerStateChange(int reason, int mixerIndex)
          Invoked when the player stops playing.
 

Method Detail

notifySoundPlayerStateChange

void notifySoundPlayerStateChange(int reason,
                                  int mixerIndex)
Invoked when the player stops playing. The reason may be:
0: playing from start
1: resume playing after pause
2: pausing
3: stopping
4: end of sound resource

mixerIndex is the index of the mixer (sound device). If only the default sound device is used, it may be ignored.