org.mobicents.media.server.component.audio
Class Sine
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSource
org.mobicents.media.server.component.audio.Sine
- All Implemented Interfaces:
- Serializable, Component, MediaSource
public class Sine
- extends AbstractSource
- Author:
- kulikov
- See Also:
- Serialized Form
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sine
public Sine(Scheduler scheduler)
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.