Class BaseAudioDevice.AudioSettings

java.lang.Object
com.opentok.android.BaseAudioDevice.AudioSettings
Enclosing class:
BaseAudioDevice

public static class BaseAudioDevice.AudioSettings extends Object
Defines the format of the audio when a custom audio driver is used.
  • Constructor Details

    • AudioSettings

      public AudioSettings(int sampleRate, int numChannels)
  • Method Details

    • getSampleRate

      public int getSampleRate()
      Returns the sample rate (in samples per second).
    • getNumChannels

      public int getNumChannels()
      Returns the number of audio channels.
    • setSampleRate

      public void setSampleRate(int sampleRate)
      Sets the sample rate (in samples per second). For example, set this to 32000 for 32 kHz. Specify a sample rate of 44.1, 32, 16, or 8 kHz (441000, 32000, 16000, or 8000).

      Currently, the only available sample format is signed 16-bit integer PCM.

    • setNumChannels

      public void setNumChannels(int numChannels)
      Sets the number of audio channels.