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 Type
    Method
    Description
    void
    audioCueClosed(long now, AudioCue source)
    Method called when an AudioCue executes its close method.
    void
    audioCueOpened(long now, int threadPriority, int bufferSize, AudioCue source)
    Method called when an AudioCue executes its open method.
    void
    Method called when an AudioCue instance event occurs.
  • Method Details

    • audioCueOpened

      void audioCueOpened(long now, int threadPriority, int bufferSize, AudioCue source)
      Method called when an AudioCue executes its open method.
      Parameters:
      now - - a long holding millisecond value
      threadPriority - - an int specifying thread priority
      bufferSize - - and int specifying buffer size in frames
      source - - the parent AudioCue that originated the notification
    • audioCueClosed

      void audioCueClosed(long now, AudioCue source)
      Method called when an AudioCue executes its close method. S
      Parameters:
      now - - a long holding a millisecond value
      source - - the parent AudioCue that originated the notification
    • instanceEventOccurred

      void instanceEventOccurred(AudioCueInstanceEvent event)
      Method called when an AudioCue instance event occurs.
      Parameters:
      event - -an AudioCueInstanceEvent
      See Also: