lame.blade
Class BladeMP3EncDLL

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

public class BladeMP3EncDLL
extends java.lang.Object

The BladeMP3EncDLL class is the container of the symmetric C LAME exported methods and constants declared in the file BladeMP3EncDLL.h.


Field Summary
static int BE_CONFIG_LAME
          Corresponds to C declaration: #define BE_CONFIG_LAME 256
static int BE_CONFIG_MP3
          Corresponds to C declaration: #define BE_CONFIG_MP3 0
static int BE_ERR_BUFFER_TOO_SMALL
          Corresponds to C declaration: #define BE_ERR_BUFFER_TOO_SMALL 0x00000005
static int BE_ERR_INVALID_FORMAT
          Corresponds to C declaration: #define BE_ERR_INVALID_FORMAT 0x00000001
static int BE_ERR_INVALID_FORMAT_PARAMETERS
          Corresponds to C declaration: #define BE_ERR_INVALID_FORMAT_PARAMETERS 0x00000002
static int BE_ERR_INVALID_HANDLE
          Corresponds to C declaration: #define BE_ERR_INVALID_HANDLE 0x00000004
static int BE_ERR_NO_MORE_HANDLES
          Corresponds to C declaration: #define BE_ERR_NO_MORE_HANDLES 0x00000003
static int BE_ERR_SUCCESSFUL
          Corresponds to C declaration: #define BE_ERR_SUCCESSFUL 0x00000000
static int BE_MAX_HOMEPAGE
          Corresponds to C declaration: #define BE_MAX_HOMEPAGE 128
static byte BE_MP3_MODE_DUALCHANNEL
          Corresponds to C declaration: #define BE_MP3_MODE_DUALCHANNEL 2
static byte BE_MP3_MODE_JSTEREO
          Corresponds to C declaration: #define BE_MP3_MODE_JSTEREO 1
static byte BE_MP3_MODE_MONO
          Corresponds to C declaration: #define BE_MP3_MODE_MONO 3
static byte BE_MP3_MODE_STEREO
          Corresponds to C declaration: #define BE_MP3_MODE_STEREO 0
static int CURRENT_STRUCT_SIZE
          Corresponds to C declaration: #define CURRENT_STRUCT_SIZE sizeof(BE_CONFIG) // is currently 331 bytes
static int CURRENT_STRUCT_VERSION
          Corresponds to C declaration: #define CURRENT_STRUCT_VERSION 1
static int MPEG1
          Corresponds to C declaration: #define MPEG1 1
static int MPEG2
          Corresponds to C declaration: #define MPEG1 0
 
Method Summary
static int beCloseStream(int hbeStream)
          Corresponds with the C method: BE_ERR beCloseStream(HBE_STREAM hbeStream);
static int beDeinitStream(int hbeStream, byte[] pOutput, com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
          Corresponds with the C method: BE_ERR beDeinitStream(HBE_STREAM hbeStream, PBYTE pOutput, PDWORD pdwOutput);
static int beEncodeChunk(int hbeStream, int nSamples, byte[] pSamples, byte[] pOutput, com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
          Corresponds with the C method: BE_ERR beEncodeChunk(HBE_STREAM hbeStream, DWORD nSamples, PSHORT pSamples, PBYTE pOutput, PDWORD pdwOutput); This is a convenience method using byte[] array instead of short[], the byte[] buffer used must be 2x the length of the analogous short[] version.
static int beEncodeChunk(int hbeStream, int nSamples, short[] pSamples, byte[] pOutput, com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
          Corresponds with the C method: BE_ERR beEncodeChunk(HBE_STREAM hbeStream, DWORD nSamples, PSHORT pSamples, PBYTE pOutput, PDWORD pdwOutput);
static int beEncodeChunkFloatS16NI(int hbeStream, int nSamples, float[] buffer_l, float[] buffer_r, byte[] pOutput, com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
          Corresponds with the C method: BE_ERR beEncodeChunkFloatS16NI(HBE_STREAM hbeStream, DWORD nSamples, PFLOAT buffer_l, PFLOAT buffer_r, PBYTE pOutput, PDWORD pdwOutput);
static int beFlushNoGap(int hbeStream, byte[] pOutput, com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
          Corresponds with the C method: BE_ERR beFlushNoGap(HBE_STREAM hbeStream, PBYTE pOutput, PDWORD pdwOutput);
static int beInitStream(BE_CONFIG pbeConfig, com.innowhere.jnieasy.core.data.NativeInteger pDwSamples, com.innowhere.jnieasy.core.data.NativeInteger pDwBufferSize, com.innowhere.jnieasy.core.data.NativeInteger phbeStream)
          Corresponds with the C method: BE_ERR beInitStream(PBE_CONFIG pbeConfig, PDWORD dwSamples, PDWORD dwBufferSize, PHBE_STREAM phbeStream);
static void beVersion(BE_VERSION pbeVersion)
          Corresponds with the C method: VOID beVersion(PBE_VERSION pbeVersion);
static void beWriteVBRHeader(java.lang.String pszMP3FileName)
          Corresponds with the C method: VOID beWriteVBRHeader( LPCSTR pszMP3FileName );
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BE_CONFIG_MP3

public static final int BE_CONFIG_MP3
Corresponds to C declaration:
  #define               BE_CONFIG_MP3                   0
  

See Also:
Constant Field Values

BE_CONFIG_LAME

public static final int BE_CONFIG_LAME
Corresponds to C declaration:
  #define               BE_CONFIG_LAME                  256
  

See Also:
Constant Field Values

BE_ERR_SUCCESSFUL

public static final int BE_ERR_SUCCESSFUL
Corresponds to C declaration:
  #define               BE_ERR_SUCCESSFUL       0x00000000
  

See Also:
Constant Field Values

BE_ERR_INVALID_FORMAT

public static final int BE_ERR_INVALID_FORMAT
Corresponds to C declaration:
  #define               BE_ERR_INVALID_FORMAT   0x00000001
  

See Also:
Constant Field Values

BE_ERR_INVALID_FORMAT_PARAMETERS

public static final int BE_ERR_INVALID_FORMAT_PARAMETERS
Corresponds to C declaration:
  #define               BE_ERR_INVALID_FORMAT_PARAMETERS        0x00000002
  

See Also:
Constant Field Values

BE_ERR_NO_MORE_HANDLES

public static final int BE_ERR_NO_MORE_HANDLES
Corresponds to C declaration:
  #define               BE_ERR_NO_MORE_HANDLES  0x00000003
  

See Also:
Constant Field Values

BE_ERR_INVALID_HANDLE

public static final int BE_ERR_INVALID_HANDLE
Corresponds to C declaration:
  #define               BE_ERR_INVALID_HANDLE   0x00000004
  

See Also:
Constant Field Values

BE_ERR_BUFFER_TOO_SMALL

public static final int BE_ERR_BUFFER_TOO_SMALL
Corresponds to C declaration:
  #define               BE_ERR_BUFFER_TOO_SMALL 0x00000005
  

See Also:
Constant Field Values

BE_MAX_HOMEPAGE

public static final int BE_MAX_HOMEPAGE
Corresponds to C declaration:
  #define               BE_MAX_HOMEPAGE                 128
  

See Also:
Constant Field Values

BE_MP3_MODE_STEREO

public static final byte BE_MP3_MODE_STEREO
Corresponds to C declaration:
  #define               BE_MP3_MODE_STEREO              0
  

See Also:
Constant Field Values

BE_MP3_MODE_JSTEREO

public static final byte BE_MP3_MODE_JSTEREO
Corresponds to C declaration:
  #define               BE_MP3_MODE_JSTEREO             1
  

See Also:
Constant Field Values

BE_MP3_MODE_DUALCHANNEL

public static final byte BE_MP3_MODE_DUALCHANNEL
Corresponds to C declaration:
  #define               BE_MP3_MODE_DUALCHANNEL         2
  

See Also:
Constant Field Values

BE_MP3_MODE_MONO

public static final byte BE_MP3_MODE_MONO
Corresponds to C declaration:
  #define               BE_MP3_MODE_MONO                3
  

See Also:
Constant Field Values

MPEG1

public static final int MPEG1
Corresponds to C declaration:
  #define               MPEG1   1
  

See Also:
Constant Field Values

MPEG2

public static final int MPEG2
Corresponds to C declaration:
  #define               MPEG1   0
  

See Also:
Constant Field Values

CURRENT_STRUCT_VERSION

public static final int CURRENT_STRUCT_VERSION
Corresponds to C declaration:
  #define CURRENT_STRUCT_VERSION 1
  

See Also:
Constant Field Values

CURRENT_STRUCT_SIZE

public static final int CURRENT_STRUCT_SIZE
Corresponds to C declaration:
  #define CURRENT_STRUCT_SIZE sizeof(BE_CONFIG) // is currently 331 bytes
  

See Also:
Constant Field Values
Method Detail

beCloseStream

public static int beCloseStream(int hbeStream)
Corresponds with the C method:
        BE_ERR  beCloseStream(HBE_STREAM hbeStream);
        


beDeinitStream

public static int beDeinitStream(int hbeStream,
                                 byte[] pOutput,
                                 com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
Corresponds with the C method:
        BE_ERR  beDeinitStream(HBE_STREAM hbeStream, PBYTE pOutput, PDWORD pdwOutput);
        


beEncodeChunk

public static int beEncodeChunk(int hbeStream,
                                int nSamples,
                                short[] pSamples,
                                byte[] pOutput,
                                com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
Corresponds with the C method:
        BE_ERR  beEncodeChunk(HBE_STREAM hbeStream, DWORD nSamples, PSHORT pSamples, PBYTE pOutput, PDWORD pdwOutput);
        


beEncodeChunk

public static int beEncodeChunk(int hbeStream,
                                int nSamples,
                                byte[] pSamples,
                                byte[] pOutput,
                                com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
Corresponds with the C method:
        BE_ERR  beEncodeChunk(HBE_STREAM hbeStream, DWORD nSamples, PSHORT pSamples, PBYTE pOutput, PDWORD pdwOutput);
        
This is a convenience method using byte[] array instead of short[], the byte[] buffer used must be 2x the length of the analogous short[] version.

See Also:
beEncodeChunk(int,int,short[],byte[],com.innowhere.jnieasy.core.data.NativeInteger)

beEncodeChunkFloatS16NI

public static int beEncodeChunkFloatS16NI(int hbeStream,
                                          int nSamples,
                                          float[] buffer_l,
                                          float[] buffer_r,
                                          byte[] pOutput,
                                          com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
Corresponds with the C method:
        BE_ERR  beEncodeChunkFloatS16NI(HBE_STREAM hbeStream, DWORD nSamples, PFLOAT buffer_l, PFLOAT buffer_r, PBYTE pOutput, PDWORD pdwOutput);
        


beFlushNoGap

public static int beFlushNoGap(int hbeStream,
                               byte[] pOutput,
                               com.innowhere.jnieasy.core.data.NativeInteger pdwOutput)
Corresponds with the C method:
        BE_ERR  beFlushNoGap(HBE_STREAM hbeStream, PBYTE pOutput, PDWORD pdwOutput);
        


beInitStream

public static int beInitStream(BE_CONFIG pbeConfig,
                               com.innowhere.jnieasy.core.data.NativeInteger pDwSamples,
                               com.innowhere.jnieasy.core.data.NativeInteger pDwBufferSize,
                               com.innowhere.jnieasy.core.data.NativeInteger phbeStream)
Corresponds with the C method:
        BE_ERR  beInitStream(PBE_CONFIG pbeConfig, PDWORD dwSamples, PDWORD dwBufferSize, PHBE_STREAM phbeStream);
        


beVersion

public static void beVersion(BE_VERSION pbeVersion)
Corresponds with the C method:
        VOID beVersion(PBE_VERSION pbeVersion);
        


beWriteVBRHeader

public static void beWriteVBRHeader(java.lang.String pszMP3FileName)
Corresponds with the C method:
        VOID beWriteVBRHeader( LPCSTR pszMP3FileName );
        



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