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 TypeMethodDescriptionvoidaudioCueClosed(long now, AudioCue source) Method called when anAudioCueexecutes itsclosemethod.voidaudioCueOpened(long now, int threadPriority, int bufferSize, AudioCue source) Method called when anAudioCueexecutes itsopenmethod.voidMethod called when anAudioCueinstance event occurs.
-
Method Details
-
audioCueOpened
Method called when anAudioCueexecutes itsopenmethod.- Parameters:
now- - alongholding millisecond valuethreadPriority- - anintspecifying thread prioritybufferSize- - andintspecifying buffer size in framessource- - the parentAudioCuethat originated the notification
-
audioCueClosed
Method called when anAudioCueexecutes itsclosemethod. S- Parameters:
now- - alongholding a millisecond valuesource- - the parentAudioCuethat originated the notification
-
instanceEventOccurred
Method called when anAudioCueinstance event occurs.- Parameters:
event- -anAudioCueInstanceEvent- See Also:
-