org.mobicents.media.server.spi.tone
Interface ToneDetector

All Superinterfaces:
Component, MediaSink, Serializable

public interface ToneDetector
extends MediaSink

Author:
Oifa Yulian

Method Summary
 void addListener(ToneDetectorListener listener)
           
 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
 void start()
          Starts media processing.
 void stop()
          Terminates media processing.
 
Methods inherited from interface org.mobicents.media.MediaSink
connect, disconnect, getBytesReceived, getPacketsReceived, isConnected, isStarted
 
Methods inherited from interface org.mobicents.media.Component
getId, getInterface, getName, reset
 

Method Detail

setFrequency

void setFrequency(int[] f)
Set frequencies of tone that detector should search for If tone detected the system fires tone event.


getFrequency

int[] getFrequency()
Gets the frequencies

Returns:
the list of frequencies

setVolume

void setVolume(int level)
Describes the power level of the tone, expressed in dBm0

Parameters:
level - the value in dBm0

getVolume

int getVolume()
Describes the power level of the tone, expressed in dBm0

Returns:
the value in dBm0

start

void start()
Starts media processing.

Specified by:
start in interface MediaSink

stop

void stop()
Terminates media processing.

Specified by:
stop in interface MediaSink

addListener

void addListener(ToneDetectorListener listener)
                 throws TooManyListenersException
Throws:
TooManyListenersException

removeListener

void removeListener(ToneDetectorListener listener)


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.