org.mobicents.media.server.component.audio
Class SpectraAnalyzer

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.AbstractSink
          extended by 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

Constructor Summary
SpectraAnalyzer(String name, Scheduler scheduler)
           
 
Method Summary
 Formats getNativeFormats()
          Gets the list of formats supported by this component without possible transcoding.
 int[] getSpectra()
           
 void onMediaTransfer(Frame frame)
          This methos is called when new portion of media arrives.
 void print(String fileName)
           
 void start()
          (Non Java-doc).
 
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 org.mobicents.media.server.impl.BaseComponent
getId, getName, inc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mobicents.media.Component
getId, getName
 

Constructor Detail

SpectraAnalyzer

public SpectraAnalyzer(String name,
                       Scheduler scheduler)
Method Detail

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.