AudioProcessor.AudioFormat


class AudioProcessor.AudioFormat


PCM audio format that may be handled by an audio processor.

Summary

Constants

const AudioProcessor.AudioFormat!

An AudioFormat instance to represent an unset AudioFormat.

Public constructors

AudioFormat(format: Format!)

Creates an instance using the sampleRate, channelCount and pcmEncoding.

AudioFormat(sampleRate: Int, channelCount: Int, @C.PcmEncoding encoding: Int)

Public functions

Boolean
equals(o: Any?)
Int
String!

Public properties

Int

The number of bytes used to represent one audio frame.

Int

The number of interleaved channels.

Int

The type of linear PCM encoding.

Int

The sample rate in Hertz.

Constants

NOT_SET

const val NOT_SETAudioProcessor.AudioFormat!

An AudioFormat instance to represent an unset AudioFormat. This should not be returned by configure if the processor isActive.

Typically used to represent an inactive AudioProcessor output format.

Public constructors

AudioFormat

AudioFormat(format: Format!)

Creates an instance using the sampleRate, channelCount and pcmEncoding.

AudioFormat

AudioFormat(sampleRate: Int, channelCount: Int, @C.PcmEncoding encoding: Int)

Public functions

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String!

Public properties

bytesPerFrame

val bytesPerFrameInt

The number of bytes used to represent one audio frame.

channelCount

val channelCountInt

The number of interleaved channels.

encoding

@C.PcmEncoding
val encodingInt

The type of linear PCM encoding.

sampleRate

val sampleRateInt

The sample rate in Hertz.