public interface ToneDetector extends MediaSink
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Starts media processing.
|
void |
addListener(ToneDetectorListener listener) |
void |
clearAllListeners() |
void |
deactivate()
Terminates media processing.
|
int[] |
getFrequency()
Gets the frequencies
|
int |
getVolume()
Describes the power level of the tone, expressed in dBm0
|
void |
removeListener(ToneDetectorListener listener) |
void |
setFrequency(int[] f)
Set frequencies of tone that detector should search for
If tone detected the system fires tone event.
|
void |
setVolume(int level)
Describes the power level of the tone, expressed in dBm0
|
getBytesReceived, getPacketsReceived, isStarted, performvoid setFrequency(int[] f)
int[] getFrequency()
void setVolume(int level)
level - the value in dBm0int getVolume()
void deactivate()
deactivate in interface Componentvoid addListener(ToneDetectorListener listener) throws TooManyListenersException
TooManyListenersExceptionvoid removeListener(ToneDetectorListener listener)
void clearAllListeners()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.