Class WavFileInfo
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.wav.WavFileInfo
-
public class WavFileInfo extends java.lang.ObjectWAV file format information.
-
-
Field Summary
Fields Modifier and Type Field Description intbitsPerSampleBits per sample (currently only 16 supported).intblockAlignSize of a block (one sample for each channel + padding).longblockCountNumber of blocks in the file.intchannelCountNumber of channels.intsampleRateSample rate.longstartOffsetStarting position of the raw PCM samples in the file.
-
Constructor Summary
Constructors Constructor Description WavFileInfo(int channelCount, int sampleRate, int bitsPerSample, int blockAlign, long blockCount, long startOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()intgetPadding()
-
-
-
Field Detail
-
channelCount
public final int channelCount
Number of channels.
-
sampleRate
public final int sampleRate
Sample rate.
-
bitsPerSample
public final int bitsPerSample
Bits per sample (currently only 16 supported).
-
blockAlign
public final int blockAlign
Size of a block (one sample for each channel + padding).
-
blockCount
public final long blockCount
Number of blocks in the file.
-
startOffset
public final long startOffset
Starting position of the raw PCM samples in the file.
-
-
Constructor Detail
-
WavFileInfo
public WavFileInfo(int channelCount, int sampleRate, int bitsPerSample, int blockAlign, long blockCount, long startOffset)- Parameters:
channelCount- Number of channels.sampleRate- Sample rate.bitsPerSample- Bits per sample (currently only 16 supported).blockAlign- Size of a block (one sample for each channel + padding).blockCount- Number of blocks in the file.startOffset- Starting position of the raw PCM samples in the file.
-
-