org.mobicents.media.server.component.audio
Class SpectraAnalyzer
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSink
org.mobicents.media.server.component.audio.SpectraAnalyzer
- All Implemented Interfaces:
- Serializable, Component, MediaSink
public class SpectraAnalyzer
- extends AbstractSink
- Author:
- Oleg Kulikov
- See Also:
- Serialized Form
| Methods inherited from class org.mobicents.media.server.impl.AbstractSink |
connect, disconnect, failed, getBytesReceived, getDsp, getFormats, getInterface, getPacketsReceived, isConnected, isStarted, rebuildFormats, report, reset, setDsp, setFormats, started, stop, stopped, wakeup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpectraAnalyzer
public SpectraAnalyzer(String name,
Scheduler scheduler)
start
public void start()
- Description copied from class:
AbstractSink
- (Non Java-doc).
- Specified by:
start in interface MediaSink- Overrides:
start in class AbstractSink
- See Also:
MediaSink.start().
onMediaTransfer
public void onMediaTransfer(Frame frame)
throws IOException
- Description copied from class:
AbstractSink
- This methos is called when new portion of media arrives.
- Specified by:
onMediaTransfer in class AbstractSink
- Throws:
IOException
getSpectra
public int[] getSpectra()
print
public void print(String fileName)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
getNativeFormats
public Formats getNativeFormats()
- Description copied from class:
AbstractSink
- Gets the list of formats supported by this component without possible
transcoding.
- Specified by:
getNativeFormats in class AbstractSink
- Returns:
- the list of format descriptors
Copyright © 2011. All Rights Reserved.