|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object entagged.audioformats.asf.data.Chunk entagged.audioformats.asf.data.StreamChunk entagged.audioformats.asf.data.AudioStreamChunk
public class AudioStreamChunk
This class represents the streamchunk describing an audio stream.
Field Summary | |
---|---|
static String[][] |
CODEC_DESCRIPTIONS
Stores the hex values of codec identifiers to their descriptions. |
Fields inherited from class entagged.audioformats.asf.data.Chunk |
---|
chunkLength, guid, position |
Constructor Summary | |
---|---|
AudioStreamChunk(long pos,
BigInteger chunkLen)
Creates an instance. |
Method Summary | |
---|---|
long |
getAverageBytesPerSec()
|
int |
getBitsPerSample()
|
long |
getBlockAlignment()
|
long |
getChannelCount()
|
byte[] |
getCodecData()
|
String |
getCodecDescription()
This method will take a look at compressionFormat and returns a
String with its hex value and if known a textual note on what coded it
represents. |
long |
getCompressionFormat()
|
GUID |
getErrorConcealment()
|
int |
getKbps()
This method takes the value of getAverageBytesPerSec() and
calculates the kbps out of it, by simply multiplying by 8 and dividing by
1000. |
long |
getSamplingRate()
|
boolean |
isErrorConcealed()
This mehtod returns whether the audio stream data is error concealed. |
String |
prettyPrint()
(overridden) |
void |
setAverageBytesPerSec(long avgeBytesPerSec)
|
void |
setBitsPerSample(int bps)
Sets the bitsPerSample |
void |
setBlockAlignment(long align)
Sets the blockAlignment. |
void |
setChannelCount(long channels)
|
void |
setCodecData(byte[] codecSpecificData)
Sets the codecData |
void |
setCompressionFormat(long cFormatCode)
|
void |
setErrorConcealment(GUID errConc)
This method sets the error concealment type which is given by two GUIDs. |
void |
setSamplingRate(long sampRate)
|
Methods inherited from class entagged.audioformats.asf.data.StreamChunk |
---|
getStreamNumber, getStreamSpecificDataSize, getTimeOffset, getTypeSpecificDataSize, isContentEncrypted, setContentEncrypted, setStreamNumber, setStreamSpecificDataSize, setTimeOffset, setTypeSpecificDataSize |
Methods inherited from class entagged.audioformats.asf.data.Chunk |
---|
getChunckEnd, getChunkLength, getGuid, getPosition, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String[][] CODEC_DESCRIPTIONS
Constructor Detail |
---|
public AudioStreamChunk(long pos, BigInteger chunkLen)
pos
- Position of current chunk within asf file or stream.chunkLen
- Length of the entire chunk (including guid and size)Method Detail |
---|
public long getAverageBytesPerSec()
public int getBitsPerSample()
public long getBlockAlignment()
public long getChannelCount()
public byte[] getCodecData()
public String getCodecDescription()
compressionFormat
and returns a
String with its hex value and if known a textual note on what coded it
represents.
public long getCompressionFormat()
public GUID getErrorConcealment()
public int getKbps()
getAverageBytesPerSec()
and
calculates the kbps out of it, by simply multiplying by 8 and dividing by
1000.
public long getSamplingRate()
public boolean isErrorConcealed()
true
if error concealment is used.public String prettyPrint()
prettyPrint
in class StreamChunk
StreamChunk.prettyPrint()
public void setAverageBytesPerSec(long avgeBytesPerSec)
avgeBytesPerSec
- The averageBytesPerSec to set.public void setBitsPerSample(int bps)
bps
- public void setBlockAlignment(long align)
align
- public void setChannelCount(long channels)
channels
- The channelCount to set.public void setCodecData(byte[] codecSpecificData)
codecSpecificData
- public void setCompressionFormat(long cFormatCode)
cFormatCode
- The compressionFormat to set.public void setErrorConcealment(GUID errConc)
errConc
- the type of error concealment the audio stream is stored as.public void setSamplingRate(long sampRate)
sampRate
- The samplingRate to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |