Class AudioMediaFormatImpl

    • Constructor Detail

      • AudioMediaFormatImpl

        public AudioMediaFormatImpl​(String encoding)
        Initializes a new AudioMediaFormatImpl instance with the specified encoding and a single audio channel.
        Parameters:
        encoding - the encoding of the new AudioMediaFormatImpl instance
    • Method Detail

      • getChannels

        public int getChannels()
        Gets the number of audio channels associated with this AudioMediaFormat.
        Specified by:
        getChannels in interface AudioMediaFormat
        Returns:
        the number of audio channels associated with this AudioMediaFormat
        See Also:
        AudioMediaFormat.getChannels()
      • getClockRate

        public double getClockRate()
        Gets the clock rate associated with this MediaFormat.
        Specified by:
        getClockRate in interface MediaFormat
        Returns:
        the clock rate associated with this MediaFormat
        See Also:
        MediaFormat.getClockRate()
      • getMediaType

        public final org.jitsi.utils.MediaType getMediaType()
        Gets the type of this MediaFormat which is MediaType.AUDIO for AudioMediaFormatImpl instances.
        Specified by:
        getMediaType in interface MediaFormat
        Returns:
        the MediaType that this format represents and which is MediaType.AUDIO for AudioMediaFormatImpl instances
        See Also:
        MediaFormat.getMediaType()