it.sauronsoftware.jave
Class AudioAttributes

java.lang.Object
  extended by it.sauronsoftware.jave.AudioAttributes
All Implemented Interfaces:
java.io.Serializable

public class AudioAttributes
extends java.lang.Object
implements java.io.Serializable

Attributes controlling the audio encoding process.

Author:
Carlo Pelliccia
See Also:
Serialized Form

Field Summary
static java.lang.String DIRECT_STREAM_COPY
          This value can be setted in the codec field to perform a direct stream copy, without re-encoding of the audio stream.
 
Constructor Summary
AudioAttributes()
           
 
Method Summary
 void setBitRate(java.lang.Integer bitRate)
          Sets the bitrate value for the encoding process.
 void setChannels(java.lang.Integer channels)
          Sets the channels value (1=mono, 2=stereo) for the encoding process.
 void setCodec(java.lang.String codec)
          Sets the codec name for the encoding process.
 void setSamplingRate(java.lang.Integer samplingRate)
          Sets the samplingRate value for the encoding process.
 void setVolume(java.lang.Integer volume)
          Sets the volume value for the encoding process.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRECT_STREAM_COPY

public static final java.lang.String DIRECT_STREAM_COPY
This value can be setted in the codec field to perform a direct stream copy, without re-encoding of the audio stream.

See Also:
Constant Field Values
Constructor Detail

AudioAttributes

public AudioAttributes()
Method Detail

setCodec

public void setCodec(java.lang.String codec)
Sets the codec name for the encoding process. If null or not specified the encoder will perform a direct stream copy. Be sure the supplied codec name is in the list returned by Encoder.getAudioEncoders(). A special value can be picked from DIRECT_STREAM_COPY.

Parameters:
codec - The codec name for the encoding process.

setBitRate

public void setBitRate(java.lang.Integer bitRate)
Sets the bitrate value for the encoding process. If null or not specified a default value will be picked.

Parameters:
bitRate - The bitrate value for the encoding process.

setSamplingRate

public void setSamplingRate(java.lang.Integer samplingRate)
Sets the samplingRate value for the encoding process. If null or not specified a default value will be picked.

Parameters:
samplingRate - The samplingRate value for the encoding process.

setChannels

public void setChannels(java.lang.Integer channels)
Sets the channels value (1=mono, 2=stereo) for the encoding process. If null or not specified a default value will be picked.

Parameters:
channels - The channels value (1=mono, 2=stereo) for the encoding process.

setVolume

public void setVolume(java.lang.Integer volume)
Sets the volume value for the encoding process. If null or not specified a default value will be picked. If 256 no volume change will be performed.

Parameters:
volume - The volume value for the encoding process.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object