public class AudioLevelCalculator extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
MAX_AUDIO_LEVEL
The maximum audio level.
|
static byte |
MIN_AUDIO_LEVEL
The minimum audio level.
|
| Constructor and Description |
|---|
AudioLevelCalculator() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
calculateAudioLevel(byte[] samples,
int offset,
int length)
Calculates the audio level of a signal with specific samples.
|
public static final byte MAX_AUDIO_LEVEL
public static final byte MIN_AUDIO_LEVEL
public static byte calculateAudioLevel(byte[] samples,
int offset,
int length)
samples - the samples of the signal to calculate the audio level ofoffset - the offset in samples in which the samples startlength - the length in bytes of the signal in samples
starting at offsetCopyright © 2021 jitsi.org. All rights reserved.