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

java.lang.Object
  extended by org.mobicents.media.server.impl.BaseComponent
      extended by org.mobicents.media.server.impl.AbstractSource
          extended by org.mobicents.media.server.component.audio.Sine
All Implemented Interfaces:
Serializable, Component, MediaSource

public class Sine
extends AbstractSource

Author:
kulikov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.media.server.impl.AbstractSource
duration, pipe
 
Constructor Summary
Sine(Scheduler scheduler)
           
 
Method Summary
 Frame evolve(long timestamp)
          This method must be overriden by concrete media source.
 short getAmplitude()
           
 int getFrequency()
           
 Formats getNativeFormats()
          Gets the list of formats supported by this component without possible transcoding.
 void setAmplitude(short A)
           
 void setFrequency(int f)
           
 
Methods inherited from class org.mobicents.media.server.impl.AbstractSource
completed, connect, disconnect, failed, getBytesTransmitted, getDsp, getDuration, getFormats, getInterface, getMediaTime, getPacketsTransmitted, isConnected, isStarted, rebuildFormats, report, reset, setDsp, setDuration, setFormats, setInitialDelay, setMediaTime, start, 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

Sine

public Sine(Scheduler scheduler)
Method Detail

setAmplitude

public void setAmplitude(short A)

getAmplitude

public short getAmplitude()

setFrequency

public void setFrequency(int f)

getFrequency

public int getFrequency()

evolve

public Frame evolve(long timestamp)
Description copied from class: AbstractSource
This method must be overriden by concrete media source. T he media have to fill buffer with media data and attributes.

Specified by:
evolve in class AbstractSource

getNativeFormats

public Formats getNativeFormats()
Description copied from class: AbstractSource
Gets the list of formats supported by this component without possible transcoding.

Specified by:
getNativeFormats in class AbstractSource
Returns:
the list of format descriptors


Copyright © 2011. All Rights Reserved.