Interface VorbisSettings.Builder

    • Method Detail

      • channels

        VorbisSettings.Builder channels​(Integer channels)
        Optional. Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2. The default value is 2.
        Parameters:
        channels - Optional. Specify the number of channels in this output audio track. Choosing Mono on the console gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2. The default value is 2.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sampleRate

        VorbisSettings.Builder sampleRate​(Integer sampleRate)
        Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, 44100, and 48000. The default value is 48000.
        Parameters:
        sampleRate - Optional. Specify the audio sample rate in Hz. Valid values are 22050, 32000, 44100, and 48000. The default value is 48000.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vbrQuality

        VorbisSettings.Builder vbrQuality​(Integer vbrQuality)
        Optional. Specify the variable audio quality of this Vorbis output from -1 (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, respectively.
        Parameters:
        vbrQuality - Optional. Specify the variable audio quality of this Vorbis output from -1 (lowest quality, ~45 kbit/s) to 10 (highest quality, ~500 kbit/s). The default value is 4 (~128 kbit/s). Values 5 and 6 are approximately 160 and 192 kbit/s, respectively.
        Returns:
        Returns a reference to this object so that method calls can be chained together.