lame.blade
Class BE_CONFIG

java.lang.Object
  extended by lame.blade.BE_CONFIG

public class BE_CONFIG
extends java.lang.Object

The BE_CONFIG class is the Java symmetric representation of the corresponding C LAME structure as declared in the file BladeMP3EncDLL.h.

  
typedef struct  {
        DWORD   dwConfig;                       // BE_CONFIG_XXXXX
                                                // Currently only BE_CONFIG_MP3 is supported
        union   {

                struct  {

                        DWORD   dwSampleRate;           // 48000, 44100 and 32000 allowed
                        BYTE    byMode;                 // BE_MP3_MODE_STEREO, BE_MP3_MODE_DUALCHANNEL, BE_MP3_MODE_MONO
                        WORD    wBitrate;               // 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 and 320 allowed
                        BOOL    bPrivate;               
                        BOOL    bCRC;
                        BOOL    bCopyright;
                        BOOL    bOriginal;

                        } mp3;                          // BE_CONFIG_MP3

                        struct
                        {
                        // STRUCTURE INFORMATION
                        DWORD                   dwStructVersion;        
                        DWORD                   dwStructSize;

                        // BASIC ENCODER SETTINGS
                        DWORD                   dwSampleRate;           // SAMPLERATE OF INPUT FILE
                        DWORD                   dwReSampleRate;         // DOWNSAMPLERATE, 0=ENCODER DECIDES  
                        LONG                    nMode;                  // BE_MP3_MODE_STEREO, BE_MP3_MODE_DUALCHANNEL, BE_MP3_MODE_MONO
                        DWORD                   dwBitrate;              // CBR bitrate, VBR min bitrate
                        DWORD                   dwMaxBitrate;           // CBR ignored, VBR Max bitrate
                        LONG                    nPreset;                // Quality preset, use one of the settings of the LAME_QUALITY_PRESET enum
                        DWORD                   dwMpegVersion;          // FUTURE USE, MPEG-1 OR MPEG-2
                        DWORD                   dwPsyModel;             // FUTURE USE, SET TO 0
                        DWORD                   dwEmphasis;             // FUTURE USE, SET TO 0

                        // BIT STREAM SETTINGS
                        BOOL                    bPrivate;               // Set Private Bit (TRUE/FALSE)
                        BOOL                    bCRC;                   // Insert CRC (TRUE/FALSE)
                        BOOL                    bCopyright;             // Set Copyright Bit (TRUE/FALSE)
                        BOOL                    bOriginal;              // Set Original Bit (TRUE/FALSE)

                        // VBR STUFF
                        BOOL                    bWriteVBRHeader;        // WRITE XING VBR HEADER (TRUE/FALSE)
                        BOOL                    bEnableVBR;             // USE VBR ENCODING (TRUE/FALSE)
                        INT                     nVBRQuality;            // VBR QUALITY 0..9
                        DWORD                   dwVbrAbr_bps;           // Use ABR in stead of nVBRQuality
                        VBRMETHOD               nVbrMethod;
                        BOOL                    bNoRes;                 // Disable Bit resorvoir (TRUE/FALSE)

                        // MISC SETTINGS
                        BOOL                    bStrictIso;             // Use strict ISO encoding rules (TRUE/FALSE)
                        WORD                    nQuality;               // Quality Setting, HIGH BYTE should be NOT LOW byte, otherwhise quality=5

                        // FUTURE USE, SET TO 0, align strucutre to 331 bytes
                        BYTE                    btReserved[255-4*sizeof(DWORD) - sizeof( WORD )];

                        } LHV1;                 // LAME header version 1

                struct  {

                        DWORD   dwSampleRate;
                        BYTE    byMode;
                        WORD    wBitrate;
                        BYTE    byEncodingMethod;

                } aac;

        } format;

} BE_CONFIG, *BE_CONFIG ATTRIBUTE_PACKED;


Nested Class Summary
static class BE_CONFIG.STRUCT_FORMAT
          The STRUCT_FORMAT class is the Java symmetric representation of the anonymous union data type of the format field of the LAME BE_CONFIG structure.
 
Field Summary
protected  int dwConfig
           
protected  BE_CONFIG.STRUCT_FORMAT format
           
 
Constructor Summary
BE_CONFIG()
          Creates a new configuration object
 
Method Summary
 int getDwConfig()
          Returns the current value of dwConfig attribute.
 BE_CONFIG.STRUCT_FORMAT getFormat()
          Returns the current value of format attribute.
 void setDwConfig(int dwConfig)
          Sets the value of the dwConfig attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dwConfig

protected int dwConfig

format

protected BE_CONFIG.STRUCT_FORMAT format
Constructor Detail

BE_CONFIG

public BE_CONFIG()
Creates a new configuration object

Method Detail

getDwConfig

public int getDwConfig()
Returns the current value of dwConfig attribute.

Returns:
the value of dwConfig

setDwConfig

public void setDwConfig(int dwConfig)
Sets the value of the dwConfig attribute.

Parameters:
dwConfig - the new value

getFormat

public BE_CONFIG.STRUCT_FORMAT getFormat()
Returns the current value of format attribute.

Returns:
the value of format


Copyright © 2006-2008 Jose Maria Arranz. All Rights Reserved.