|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprojectpossibility.AAnalyzer
public class AAnalyzer
Amplitude Analyzer - performs calculations related to amplitude of the audio data\n (finding max amplitude, finding number of samples above threshold,finding average amplitude)
| Constructor Summary | |
|---|---|
AAnalyzer()
|
|
| Method Summary | |
|---|---|
static double |
getAvgAmplitude(byte[] stream)
find average amplitude of audio stream |
static double |
getMaxAmplitude(byte[] stream)
find maximum amplitude of the audio stream |
static double |
samplesAboveThreshold(byte[] stream,
double thres)
find number of samples with level above the supplied threshold value |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AAnalyzer()
| Method Detail |
|---|
public static double getMaxAmplitude(byte[] stream)
stream - captured audio data
public static double samplesAboveThreshold(byte[] stream,
double thres)
stream - captured audio datathres - threshold value
public static double getAvgAmplitude(byte[] stream)
stream - captured audio data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||