Package com.adonax.audiocue
Interface AudioCueListener
public interface AudioCueListener
A listener interface for receiving notifications of events
pertaining to an
AudioCue
and to its individual play
back instances.
The execution of the implemention method instanceEventOccurred
may occur on the same thread that processes the audio data (for example,
the AudioCueInstanceEvent
type LOOP
), and thus should
be coded for brevity in order to minimize non-audio processing that
could potentially contribute to latency during media play.
- Since:
- 2.0.0
- Version:
- AudioCue 2.0.0
- Author:
- Philip Freihofner
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
audioCueClosed
(long now, AudioCue source) Method called when anAudioCue
executes itsclose
method.void
audioCueOpened
(long now, int threadPriority, int bufferSize, AudioCue source) Method called when anAudioCue
executes itsopen
method.void
Method called when anAudioCue
instance event occurs.
-
Method Details
-
audioCueOpened
Method called when anAudioCue
executes itsopen
method.- Parameters:
now
- - along
holding millisecond valuethreadPriority
- - anint
specifying thread prioritybufferSize
- - andint
specifying buffer size in framessource
- - the parentAudioCue
that originated the notification
-
audioCueClosed
Method called when anAudioCue
executes itsclose
method. S- Parameters:
now
- - along
holding a millisecond valuesource
- - the parentAudioCue
that originated the notification
-
instanceEventOccurred
Method called when anAudioCue
instance event occurs.- Parameters:
event
- -anAudioCueInstanceEvent
- See Also:
-