Interface AttributeFeatureVolume

    • Method Detail

      • getVolume

        double getVolume()
        This method gets the volume of this object. Please note that the actual volume might be influenced by the mixer of the operating system. This is just a relative scale to the system volume.
        Returns:
        the volume in the range from 0.0 (mute) to 1.0 (maximum).
        See Also:
        isMuted()
      • setVolume

        void setVolume​(double volume)
        Parameters:
        volume - is the new value of getVolume(). If negative, set to 0 and if greater than 1 set to 1.
      • isMuted

        boolean isMuted()
        Returns:
        true if muted (audio is suppressed without setting volume to 0 so the volume is not lost), false otherwise.
      • setMuted

        void setMuted​(boolean muted)
        Parameters:
        muted - the new value of isMuted().
      • mute

        default void mute()
        Sets mute to true.
      • unmute

        default void unmute()
        Sets mute to false.