public class AudioLevelCalculator
extends java.lang.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 offset
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.