public class AudioFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
AS_CHANNEL_4CH
Integer constant representing 4 channel Audio.
|
static int |
AS_CHANNEL_6CH
Integer constant representing 6 channel audio.
|
static int |
AS_CHANNEL_8CH
Integer constant representing 8 channel audio.
|
static int |
AS_CHANNEL_MONO
Integer constant representing mono audio channel.
|
static int |
AS_CHANNEL_STEREO
Integer constant representing stereo audio channel.
|
static int |
AUDIO_CODEC_MP3
Integer constant meaning MP3 Audio encoding.
|
static int |
AUDIO_CODEC_WAV
Integer constant meaning WAV Audio encoding.
|
static int |
BITLENGTH_16
Integer constant representing a bit length of 16.
|
static int |
BITLENGTH_24
Integer constant representing a bit length of 24.
|
static int |
BITLENGTH_32
Integer constant representing a bit length of 32.
|
Constructor and Description |
---|
AudioFile(java.lang.String name,
int channel,
int bitLength,
int samplingRateLength,
int codec)
This method constructs an
AudioFile . |
Modifier and Type | Method and Description |
---|---|
int |
getBitLength()
Get bit length attribute.
|
int |
getChannel()
Get audio channel number.
|
int |
getCodec()
Get the attributes representing the audio codec.
|
java.lang.String |
getName()
Get the name of the
AudioFile . |
int |
getSamplingRate()
Get sampling rate.
|
public static final int AUDIO_CODEC_MP3
public static final int AUDIO_CODEC_WAV
public static final int BITLENGTH_16
public static final int BITLENGTH_24
public static final int BITLENGTH_32
public static final int AS_CHANNEL_MONO
public static final int AS_CHANNEL_STEREO
public static final int AS_CHANNEL_4CH
public static final int AS_CHANNEL_6CH
public static final int AS_CHANNEL_8CH
public AudioFile(java.lang.String name, int channel, int bitLength, int samplingRateLength, int codec)
AudioFile
.name
- Filename.channel
- AudioChannel selected.bitLength
- BitLength of the audio file.samplingRateLength
- Sampling rate in Hz.codec
- Format of encoded audio.public java.lang.String getName()
AudioFile
.public int getChannel()
public int getCodec()
public int getSamplingRate()
public int getBitLength()