Class AudioProcessor.AudioFormat

  • Enclosing interface:
    AudioProcessor

    public static final class AudioProcessor.AudioFormat
    extends Object
    PCM audio format that may be handled by an audio processor.
    • Field Detail

      • sampleRate

        public final int sampleRate
        The sample rate in Hertz.
      • channelCount

        public final int channelCount
        The number of interleaved channels.
      • encoding

        @PcmEncoding
        public final int encoding
        The type of linear PCM encoding.
      • bytesPerFrame

        public final int bytesPerFrame
        The number of bytes used to represent one audio frame.
    • Constructor Detail

      • AudioFormat

        public AudioFormat​(int sampleRate,
                           int channelCount,
                           @PcmEncoding
                           int encoding)