org.xiph.speex.spi
Class SpeexEncoding

java.lang.Object
  extended byjavax.sound.sampled.AudioFormat.Encoding
      extended byorg.xiph.speex.spi.SpeexEncoding

public class SpeexEncoding
extends javax.sound.sampled.AudioFormat.Encoding

Encodings used by the Speex audio decoder.

Version:
$Revision: 1.4 $
Author:
Marc Gimpel, Wimba S.A. (marc@wimba.com)

Field Summary
static int DEFAULT_QUALITY
          Default quality setting for the Speex encoding.
static boolean DEFAULT_VBR
          Default VBR setting for the Speex encoding.
protected  int quality
          Quality setting for the Speex encoding.
static SpeexEncoding SPEEX
          Specifies any Speex encoded data.
static SpeexEncoding SPEEX_Q0
           
static SpeexEncoding SPEEX_Q1
           
static SpeexEncoding SPEEX_Q10
           
static SpeexEncoding SPEEX_Q2
           
static SpeexEncoding SPEEX_Q3
           
static SpeexEncoding SPEEX_Q4
           
static SpeexEncoding SPEEX_Q5
           
static SpeexEncoding SPEEX_Q6
           
static SpeexEncoding SPEEX_Q7
           
static SpeexEncoding SPEEX_Q8
           
static SpeexEncoding SPEEX_Q9
           
static SpeexEncoding SPEEX_VBR0
           
static SpeexEncoding SPEEX_VBR1
           
static SpeexEncoding SPEEX_VBR10
           
static SpeexEncoding SPEEX_VBR2
           
static SpeexEncoding SPEEX_VBR3
           
static SpeexEncoding SPEEX_VBR4
           
static SpeexEncoding SPEEX_VBR5
           
static SpeexEncoding SPEEX_VBR6
           
static SpeexEncoding SPEEX_VBR7
           
static SpeexEncoding SPEEX_VBR8
           
static SpeexEncoding SPEEX_VBR9
           
protected  boolean vbr
          Defines whether or not the encoding is Variable Bit Rate.
 
Fields inherited from class javax.sound.sampled.AudioFormat.Encoding
ALAW, PCM_SIGNED, PCM_UNSIGNED, ULAW
 
Constructor Summary
SpeexEncoding(java.lang.String name)
          Constructs a new encoding.
SpeexEncoding(java.lang.String name, int quality, boolean vbr)
          Constructs a new encoding.
 
Method Summary
 int getQuality()
          Returns the quality setting for the Speex encoding.
 boolean isVBR()
          Returns whether or not the encoding is Variable Bit Rate.
 
Methods inherited from class javax.sound.sampled.AudioFormat.Encoding
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SPEEX

public static final SpeexEncoding SPEEX
Specifies any Speex encoded data.


SPEEX_Q0

public static final SpeexEncoding SPEEX_Q0

SPEEX_Q1

public static final SpeexEncoding SPEEX_Q1

SPEEX_Q2

public static final SpeexEncoding SPEEX_Q2

SPEEX_Q3

public static final SpeexEncoding SPEEX_Q3

SPEEX_Q4

public static final SpeexEncoding SPEEX_Q4

SPEEX_Q5

public static final SpeexEncoding SPEEX_Q5

SPEEX_Q6

public static final SpeexEncoding SPEEX_Q6

SPEEX_Q7

public static final SpeexEncoding SPEEX_Q7

SPEEX_Q8

public static final SpeexEncoding SPEEX_Q8

SPEEX_Q9

public static final SpeexEncoding SPEEX_Q9

SPEEX_Q10

public static final SpeexEncoding SPEEX_Q10

SPEEX_VBR0

public static final SpeexEncoding SPEEX_VBR0

SPEEX_VBR1

public static final SpeexEncoding SPEEX_VBR1

SPEEX_VBR2

public static final SpeexEncoding SPEEX_VBR2

SPEEX_VBR3

public static final SpeexEncoding SPEEX_VBR3

SPEEX_VBR4

public static final SpeexEncoding SPEEX_VBR4

SPEEX_VBR5

public static final SpeexEncoding SPEEX_VBR5

SPEEX_VBR6

public static final SpeexEncoding SPEEX_VBR6

SPEEX_VBR7

public static final SpeexEncoding SPEEX_VBR7

SPEEX_VBR8

public static final SpeexEncoding SPEEX_VBR8

SPEEX_VBR9

public static final SpeexEncoding SPEEX_VBR9

SPEEX_VBR10

public static final SpeexEncoding SPEEX_VBR10

DEFAULT_QUALITY

public static final int DEFAULT_QUALITY
Default quality setting for the Speex encoding.

See Also:
Constant Field Values

DEFAULT_VBR

public static final boolean DEFAULT_VBR
Default VBR setting for the Speex encoding.

See Also:
Constant Field Values

quality

protected int quality
Quality setting for the Speex encoding.


vbr

protected boolean vbr
Defines whether or not the encoding is Variable Bit Rate.

Constructor Detail

SpeexEncoding

public SpeexEncoding(java.lang.String name,
                     int quality,
                     boolean vbr)
Constructs a new encoding.

Parameters:
name - - Name of the Speex encoding.
quality - - Quality setting for the Speex encoding.
vbr - - Defines whether or not the encoding is Variable Bit Rate.

SpeexEncoding

public SpeexEncoding(java.lang.String name)
Constructs a new encoding.

Parameters:
name - - Name of the Speex encoding.
Method Detail

getQuality

public int getQuality()
Returns the quality setting for the Speex encoding.

Returns:
the quality setting for the Speex encoding.

isVBR

public boolean isVBR()
Returns whether or not the encoding is Variable Bit Rate.

Returns:
whether or not the encoding is Variable Bit Rate.


Copyright © 1999-2004 Wimba S.A. All Rights Reserved.