org.xiph.speex
Interface Decoder
- NbDecoder, SbDecoder
Speex Decoder inteface, used as a base for the Narrowband and sideband
decoders.
- Jim Lawrence, helloNetwork.com
- Marc Gimpel, Wimba S.A. (mgimpel@horizonwimba.com)
int | decode(Bits bits, float[] out) - Decode the given input bits.
|
void | decodeStereo(float[] data, int frameSize) - Decode the given bits to stereo.
|
boolean | getDtx() - Returns whether or not we are using Discontinuous Transmission encoding.
|
float[] | getExc() - Returns the excitation array.
|
int | getFrameSize() - Returns the size of a frame.
|
float[] | getInnov() - Returns the innovation array.
|
boolean | getPerceptualEnhancement() - Returns whether perceptual enhancement is enabled or disabled.
|
float[] | getPiGain() - Returns the Pitch Gain array.
|
void | setPerceptualEnhancement(boolean enhanced) - Enables or disables perceptual enhancement.
|
decode
public int decode(Bits bits,
float[] out)
throws StreamCorruptedException
Decode the given input bits.
bits
- - Speex bits buffer.out
- - the decoded mono audio frame.
- 1 if a terminator was found, 0 if not.
decodeStereo
public void decodeStereo(float[] data,
int frameSize)
Decode the given bits to stereo.
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.
getDtx
public boolean getDtx()
Returns whether or not we are using Discontinuous Transmission encoding.
- whether or not we are using Discontinuous Transmission encoding.
getExc
public float[] getExc()
Returns the excitation array.
getFrameSize
public int getFrameSize()
Returns the size of a frame.
getInnov
public float[] getInnov()
Returns the innovation array.
getPerceptualEnhancement
public boolean getPerceptualEnhancement()
Returns whether perceptual enhancement is enabled or disabled.
- whether perceptual enhancement is enabled or disabled.
getPiGain
public float[] getPiGain()
Returns the Pitch Gain array.
setPerceptualEnhancement
public void setPerceptualEnhancement(boolean enhanced)
Enables or disables perceptual enhancement.
Copyright © 1999-2004 Wimba S.A. All Rights Reserved.