Class AbstractMutableAudioFrame

    • Constructor Detail

      • AbstractMutableAudioFrame

        public AbstractMutableAudioFrame()
    • Method Detail

      • getTimecode

        public long getTimecode()
        Specified by:
        getTimecode in interface AudioFrame
        Returns:
        Absolute timecode of the frame in milliseconds.
      • setTimecode

        public void setTimecode​(long timecode)
      • getVolume

        public int getVolume()
        Specified by:
        getVolume in interface AudioFrame
        Returns:
        Volume of the current frame.
      • setVolume

        public void setVolume​(int volume)
      • isTerminator

        public boolean isTerminator()
        Specified by:
        isTerminator in interface AudioFrame
        Returns:
        Whether this frame is a terminator. This is an internal concept of the player and should never be true in any frames received by the user.
      • setTerminator

        public void setTerminator​(boolean terminator)
      • freeze

        public ImmutableAudioFrame freeze()
        Returns:
        An immutable instance created from this mutable audio frame. In an ideal flow, this should never be called.