public class VBRTag
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXFRAMESIZE
(0xB40) the max freeformat 640 32kHz framesize.
|
static int |
NUMTOCENTRIES |
| Constructor and Description |
|---|
VBRTag() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVbrFrame(LameGlobalFlags gfp)
Add VBR entry, used to fill the VBR TOC entries.
|
int |
getLameTagFrame(LameGlobalFlags gfp,
byte[] buffer) |
VBRTagData |
getVbrTag(byte[] buf)
Get VBR tag information
|
void |
InitVbrTag(LameGlobalFlags gfp)
Initializes the header
|
int |
putVbrTag(LameGlobalFlags gfp,
java.io.RandomAccessFile stream)
Write final VBR tag to the file.
|
void |
setModules(Lame lame,
BitStream bs,
Version v) |
void |
updateMusicCRC(int[] crc,
byte[] buffer,
int bufferPos,
int size) |
public static final int NUMTOCENTRIES
public static final int MAXFRAMESIZE
public final void addVbrFrame(LameGlobalFlags gfp)
gfp - global flagspublic final VBRTagData getVbrTag(byte[] buf)
buf - header to analyzebufPos - offset into the headerpublic final void InitVbrTag(LameGlobalFlags gfp)
gfp - global flagspublic final void updateMusicCRC(int[] crc,
byte[] buffer,
int bufferPos,
int size)
public final int getLameTagFrame(LameGlobalFlags gfp, byte[] buffer)
public final int putVbrTag(LameGlobalFlags gfp, java.io.RandomAccessFile stream) throws java.io.IOException
gfp - global flagsstream - stream to add the VBR tag tojava.io.IOException - I/O error