public class PhoneSignalDetector extends AbstractSink implements ToneDetector
| Constructor and Description |
|---|
PhoneSignalDetector(String name,
org.mobicents.media.server.scheduler.Scheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate() |
void |
addListener(ToneDetectorListener listener) |
void |
clearAllListeners() |
void |
deactivate() |
AudioOutput |
getAudioOutput() |
int[] |
getFrequency() |
int |
getVolume() |
void |
onMediaTransfer(Frame frame) |
void |
removeListener(ToneDetectorListener listener) |
void |
setFormats(Formats formats)
(Non Java-doc.)
|
void |
setFrequency(int[] f) |
void |
setVolume(int level) |
failed, getBytesReceived, getPacketsReceived, isStarted, perform, report, reset, start, started, stop, stoppedclearEndpoint, getEndpoint, getId, getName, setEndpointclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBytesReceived, getPacketsReceived, isStarted, performclearEndpoint, getEndpoint, getId, getName, reset, setEndpointpublic PhoneSignalDetector(String name, org.mobicents.media.server.scheduler.Scheduler scheduler)
public AudioOutput getAudioOutput()
public void setFrequency(int[] f)
setFrequency in interface ToneDetectorpublic int[] getFrequency()
getFrequency in interface ToneDetectorpublic void setVolume(int level)
setVolume in interface ToneDetectorpublic int getVolume()
getVolume in interface ToneDetectorpublic void activate()
activate in interface Componentactivate in interface ToneDetectoractivate in class AbstractSinkpublic void deactivate()
deactivate in interface Componentdeactivate in interface ToneDetectordeactivate in class AbstractSinkpublic void onMediaTransfer(Frame frame) throws IOException
onMediaTransfer in class AbstractSinkIOExceptionpublic void setFormats(Formats formats) throws FormatNotSupportedException
FormatNotSupportedExceptionorg.mobicents.media.MediaSink#setFormats(org.mobicents.media.server.spi.format.Formats)public void addListener(ToneDetectorListener listener) throws TooManyListenersException
addListener in interface ToneDetectorTooManyListenersExceptionpublic void removeListener(ToneDetectorListener listener)
removeListener in interface ToneDetectorpublic void clearAllListeners()
clearAllListeners in interface ToneDetectorCopyright © 2015 TeleStax, Inc.. All Rights Reserved.