org.mobicents.media.server.impl.resource.cnf
Class MixerInputStream
java.lang.Object
org.mobicents.media.server.impl.BaseComponent
org.mobicents.media.server.impl.AbstractSink
org.mobicents.media.server.impl.resource.cnf.MixerInputStream
- All Implemented Interfaces:
- java.io.Serializable, org.mobicents.media.Component, org.mobicents.media.MediaSink
public class MixerInputStream
- extends AbstractSink
- Author:
- Oleg Kulikov
- See Also:
- Serialized Form
| Fields inherited from interface org.mobicents.media.Component |
AUDIO_PLAYER, AUDIO_RECORDER, DTMF_DETECTOR, DTMF_GENERATOR |
|
Method Summary |
org.mobicents.media.Format[] |
getFormats()
|
java.lang.String |
getId()
|
long |
getJitter()
Gets the current jitter. |
boolean |
isAcceptable(org.mobicents.media.Format fmt)
(Non Java-doc.) |
boolean |
isReady()
|
byte[] |
read(int duration)
Reads media buffer from this stream with specified duration. |
void |
receive(org.mobicents.media.Buffer buffer)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mobicents.media.Component |
addListener, getConnection, getEndpoint, getName, getResourceType, removeListener, setConnection, setEndpoint, setResourceType |
mixer
protected AudioMixer mixer
MixerInputStream
public MixerInputStream(AudioMixer mixer,
int jitter)
getId
public java.lang.String getId()
- Specified by:
getId in interface org.mobicents.media.Component- Overrides:
getId in class BaseComponent
isReady
public boolean isReady()
getJitter
public long getJitter()
- Gets the current jitter.
- Returns:
- jitter value in milliseconds.
receive
public void receive(org.mobicents.media.Buffer buffer)
read
public byte[] read(int duration)
- Reads media buffer from this stream with specified duration.
- Parameters:
duration - the duration of the requested buffer in milliseconds.
- Returns:
- buffer which contains duration ms media for 8000Hz, 16bit, linear audio.
toString
public java.lang.String toString()
- Overrides:
toString in class BaseComponent
isAcceptable
public boolean isAcceptable(org.mobicents.media.Format fmt)
- (Non Java-doc.)
- See Also:
org.mobicents.media.MediaSink.isAcceptable(Format).
getFormats
public org.mobicents.media.Format[] getFormats()
Copyright © 2009. All Rights Reserved.