Class Stereo
java.lang.Object
javaforce.codec.speex.Stereo
Stereo
- Version:
- $Revision$
- Author:
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final float[]static final intInband code number for Stereo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(float[] data, int frameSize) Transforms a mono frame into a stereo frame using intensity stereo info.static voidTransforms a stereo frame into a mono frame and stores intensity stereo info in 'bits'.voidCallback handler for intensity stereo info
-
Field Details
-
SPEEX_INBAND_STEREO
public static final int SPEEX_INBAND_STEREOInband code number for Stereo- See Also:
-
e_ratio_quant
public static final float[] e_ratio_quant
-
-
Constructor Details
-
Stereo
public Stereo()
-
-
Method Details
-
encode
Transforms a stereo frame into a mono frame and stores intensity stereo info in 'bits'.- Parameters:
bits- - Speex bits buffer.data-frameSize-
-
decode
public void decode(float[] data, int frameSize) Transforms a mono frame into a stereo frame using intensity stereo info.- Parameters:
data- - float array of size 2*frameSize, that contains the mono audio samples in the first half. When the function has completed, the array will contain the interlaced stereo audio samples.frameSize- - the size of a frame of mono audio samples.
-
init
Callback handler for intensity stereo info- Parameters:
bits- - Speex bits buffer.
-