| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsound.recorder.SupportedAudioFormat
public class SupportedAudioFormat
TODO: create a class that gives us all the supported audio formats for a microphone!
| Field Summary | |
|---|---|
| static int | DEFAULT_CHANNELS | 
| static java.lang.String | DEFAULT_FORMAT | 
| static float | DEFAULT_RATE | 
| static javax.sound.sampled.AudioFileFormat.Type | DEFAULT_TARGET_TYPE | 
| Constructor Summary | |
|---|---|
| SupportedAudioFormat(java.lang.String strName,
                     javax.sound.sampled.AudioFormat.Encoding encoding,
                     int nSampleSize)Construct a new supported format. | |
| Method Summary | |
|---|---|
| static javax.sound.sampled.AudioFormat | getAudioFormat(int nOutputFormatIndex,
               int nChannels,
               float fRate) | 
|  boolean | getBigEndian()Returns the endianess of the format. | 
|  javax.sound.sampled.AudioFormat.Encoding | getEncoding()Returns the encoding of the format. | 
|  java.lang.String | getName()Returns the name of the format. | 
|  int | getSampleSize()Returns the sample size of the format. | 
| static SupportedAudioFormat[] | getSupportedFormats() | 
|  void | setM_bBigEndian(boolean m_bBigEndian) | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String DEFAULT_FORMAT
public static final int DEFAULT_CHANNELS
public static final float DEFAULT_RATE
public static final javax.sound.sampled.AudioFileFormat.Type DEFAULT_TARGET_TYPE
| Constructor Detail | 
|---|
public SupportedAudioFormat(java.lang.String strName,
                            javax.sound.sampled.AudioFormat.Encoding encoding,
                            int nSampleSize)
strName - the name of the format.encoding - the encoding of the format.nSampleSize - the sample size of the format, in bits.| Method Detail | 
|---|
public static SupportedAudioFormat[] getSupportedFormats()
public java.lang.String getName()
public javax.sound.sampled.AudioFormat.Encoding getEncoding()
public int getSampleSize()
public boolean getBigEndian()
public void setM_bBigEndian(boolean m_bBigEndian)
public static javax.sound.sampled.AudioFormat getAudioFormat(int nOutputFormatIndex,
                                                             int nChannels,
                                                             float fRate)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||