Class BroadcastConfiguration.Audio

  • Enclosing class:
    BroadcastConfiguration

    public static class BroadcastConfiguration.Audio
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBitrate()
      The audio bitrate for the output audio stream.
      int getChannels()
      The number of channels for the output audio stream.
      void setBitrate​(int bitrate)
      Set the bitrate for the audio stream.
      void setChannels​(int channels)
      Set the number of audio channels.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getBitrate

        public int getBitrate()
        The audio bitrate for the output audio stream. By default this is `96,000`.
      • setBitrate

        public void setBitrate​(int bitrate)
        Set the bitrate for the audio stream. This must be greater than 64k and less than 160k, otherwise a IllegalArgumentException will be thrown.
        Parameters:
        bitrate - the bitrate
      • getChannels

        public int getChannels()
        The number of channels for the output audio stream. By default this is `2`.
      • setChannels

        public void setChannels​(int channels)
        Set the number of audio channels. Currently this must be 1 or 2, otherwise an IllegalArgumentException will be thrown.
        Parameters:
        channels - the number of channels