AudioData

class AudioData(val rate: Int, val samples: AudioSamples)

Constructors

Link copied to clipboard
constructor(rate: Int, samples: AudioSamples)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rate: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun AudioData.encodeToFile(file: VfsFile, format: AudioFormats = defaultAudioFormats, props: AudioEncodingProps = AudioEncodingProps.DEFAULT)
Link copied to clipboard
operator fun get(channel: Int): ShortArray
operator fun get(channel: Int, sample: Int): Short
Link copied to clipboard
Link copied to clipboard
operator fun set(channel: Int, sample: Int, value: Short)
Link copied to clipboard
fun timeAtSample(sample: Int): TimeSpan
Link copied to clipboard
suspend fun AudioData.toSound(soundProvider: NativeSoundProvider = nativeSoundProvider): Sound
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
Link copied to clipboard

Change the rate, changing the pitch and the duration of the sound.