amplitudes

abstract fun amplitudes(channels: Int = 16): Flow<FloatArray>

Emits real-time audio amplitude values.

Return

A Flow of FloatArray where each element represents the amplitude for a channel, with values normalized between 0.0 and 1.0.

Parameters

channels

The number of amplitude channels to produce. Defaults to 16.