|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xiph.speex.Stereo
Stereo
| Field Summary | |
private float |
balance
|
private float |
e_ratio
Left/right balance info |
static float[] |
e_ratio_quant
|
private float |
smooth_left
Ratio of energies: E(left+right)/[E(left)+E(right)] |
private float |
smooth_right
Smoothed left channel gain |
static int |
SPEEX_INBAND_STEREO
Inband code number for Stereo |
| Constructor Summary | |
Stereo()
|
|
| Method Summary | |
void |
decode(float[] data,
int frameSize)
Transforms a mono frame into a stereo frame using intensity stereo info. |
static void |
encode(Bits bits,
float[] data,
int frameSize)
Transforms a stereo frame into a mono frame and stores intensity stereo info in 'bits'. |
void |
init(Bits bits)
Callback handler for intensity stereo info |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int SPEEX_INBAND_STEREO
public static final float[] e_ratio_quant
private float balance
private float e_ratio
private float smooth_left
private float smooth_right
| Constructor Detail |
public Stereo()
| Method Detail |
public static void encode(Bits bits,
float[] data,
int frameSize)
bits - - Speex bits buffer.data - frameSize -
public void decode(float[] data,
int frameSize)
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.public void init(Bits bits)
bits - - Speex bits buffer.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||