AudioFrame

data class AudioFrame

The AudioFrame class contains audio frame details describing the characteristics of the audio content.

Properties

Link copied to clipboard

An array containing the actual audio information where the raw audio samples are stored. This array holds the digital representation of the audio signal.

Link copied to clipboard
val bitsPerSample: Int = 16

The number of bits that store the audio information for a single sample of an audio format. The default value is 16.

Link copied to clipboard
val numChannels: Int = 2

The number of audio channels to define whether the audio is mono, stereo, or has more complex channel configurations. The default number of channels is 2.

Link copied to clipboard

The number of audio frames within the AudioFrame. Each audio frame is a data record that contains samples for all of the channels available in an audio signal. For example, if each frame provided is equivalent to 10 ms of playback, then the number of frames is 10 ms * sampleRate.

Link copied to clipboard
val sampleRate: Int = 48000

The rate at which audio samples are captured or played back per second, in Hz. The default sample rate is 48,000.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Automatically generated equals methods.

Link copied to clipboard
open override fun hashCode(): Int

Automatically generated hashCode methods.