Interface Audio.Depictor<A extends Audio>

  • Type Parameters:
    A - The type of audio to be depicted.
    All Superinterfaces:
    Depictor<A>
    All Known Implementing Classes:
    WebAudioDepictor
    Enclosing class:
    Audio

    public static interface Audio.Depictor<A extends Audio>
    extends Depictor<A>
    The custom depictor type for audio.
    Author:
    Garret Wilson
    • Method Detail

      • play

        void play()
        Requests that the audio start playing.
      • pause

        void pause()
        Requests that the audio pause.
      • stop

        void stop()
        Requests that the audio stop.
      • setTimePosition

        void setTimePosition​(long newTimePosition)
        Requests a new time-based play position.
        Parameters:
        newTimePosition - The new play position in microseconds.
        Throws:
        java.lang.IllegalArgumentException - if the given position is negative.