Interface PauseableAudioSource

    • Method Detail

      • pause

        default void pause​()
        Pauses the audio source.

        Equivalent to calling setPaused(true).

        See Also:
        setPaused(boolean)
      • resume

        default void resume​()
        Resumes the audio source.

        Equivalent to calling setPaused(false).

        See Also:
        setPaused(boolean)
      • setPaused

        void setPaused​(boolean paused)
        Sets whether the audio source should be paused.

        A paused audio source will completely stop. This means, that after unpausing the audio source will continue at the same "position".

        Parameters:
        paused - Whether the audio source should be paused.
      • isPaused

        boolean isPaused​()
        Checks if the audio source is paused.
        Returns:
        Whether the audio source is paused or not.