Home Units Hierarchy Routines All identifiers

Class unaLameEncoder

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaLameEncoder = class(unaObject)

Description

no description available, unaObject description follows

Base class for all objects defined in this unit.

Hierarchy

Overview

Methods

Public constructor create(const libName: string = c_lameEncDLL);
Public function encode(data: pointer; len: int): int;
Public function flush(locked: bool = true): int;
Public function open(bitrate: int = 128; cbr: bool = true; resample: int = -1; preset: int = LQP_NOPRESET): int;
Public function openVBR(minBitrate: int = 96; maxBitrate: int = 256; quality: int = 8; resample: int = -1; preset: int = LQP_NOPRESET): int;
Public procedure BeforeDestruction(); override;
Public procedure close();
Public procedure getVer(var ver: BE_VERSION);
Protected procedure onEncodedData(sampleDelta: uint; data: pointer; len: uint); virtual;

Properties

Public property active: bool read f_active;
Public property bCopyright: bool read f_bCopy write f_bCopy;
Public property bOriginal: bool read f_bOriginal write f_bOriginal;
Public property bPrivate: bool read f_bPrivate write f_bPrivate;
Public property libOK: bool read f_libOK;
Public property nMPEG: unsigned read f_mpeg write f_mpeg;
Public property nNumChannels: unsigned read f_nCh write f_nCh;
Public property nSamplesPerSecond: unsigned read f_nSps write f_nSps;

Description

Methods

Public constructor create(const libName: string = c_lameEncDLL);
 
Public function encode(data: pointer; len: int): int;
 
Public function flush(locked: bool = true): int;
 
Public function open(bitrate: int = 128; cbr: bool = true; resample: int = -1; preset: int = LQP_NOPRESET): int;

Initializates and open the encoder for CBR or ABR.

Parameters
bitrate
Desired bitrate.
cbr
True for CBR, False for ABR, default is True
resample
Resample input stream to specified rate (default is -1, means no resample).
preset
One of LQP_XXX presets. Default is LQP_NOPRESET.
Returns

BE_ERR_SUCCESSFUL in case encoder was successully initialized

Public function openVBR(minBitrate: int = 96; maxBitrate: int = 256; quality: int = 8; resample: int = -1; preset: int = LQP_NOPRESET): int;

Initializates and open the encoder for VBR.

Parameters
minBitrate
Desired minimal bitrate.
maxBitrate
Desired maximum bitrate.
quality
Desired quality from 0 to 10.
resample
Resample input stream to specified sampling rate (default is -1, means no resample).
preset
One of LQP_XXX presets. Default is LQP_NOPRESET.
Returns

BE_ERR_SUCCESSFUL in case encoder was successully initialized

Public procedure BeforeDestruction(); override;
 
Public procedure close();
 
Public procedure getVer(var ver: BE_VERSION);
 
Protected procedure onEncodedData(sampleDelta: uint; data: pointer; len: uint); virtual;
 

Properties

Public property active: bool read f_active;
 
Public property bCopyright: bool read f_bCopy write f_bCopy;
 
Public property bOriginal: bool read f_bOriginal write f_bOriginal;
 
Public property bPrivate: bool read f_bPrivate write f_bPrivate;
 
Public property libOK: bool read f_libOK;
 
Public property nMPEG: unsigned read f_mpeg write f_mpeg;
 
Public property nNumChannels: unsigned read f_nCh write f_nCh;
 
Public property nSamplesPerSecond: unsigned read f_nSps write f_nSps;

– properties –

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09