Home Units Hierarchy Routines All identifiers

Class unaSpeexCoder

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaSpeexCoder = class(unaObject)

Description

Base class fro Speex encoder and decoder.

Hierarchy

Overview

Methods

Public constructor create(lib: unaSpeexLib; mode: int = SPEEX_MODEID_NB);
Public function open(): bool;
Protected function doGetFrameSize(): int; virtual; abstract;
Protected function doGetSamplingRate(): int; virtual; abstract;
Protected function doInit(): pointer; virtual; abstract;
Protected function enter(timeout: tTimeout = 3000): bool;
Public procedure BeforeDestruction(); override;
Public procedure close();
Protected procedure afterOpen(); virtual;
Protected procedure beforeClose(); virtual;
Protected procedure doClose(); virtual; abstract;
Protected procedure doOpen(); virtual; abstract;
Protected procedure leave();

Properties

Public property active: bool read getActive write setActive;
Public property bits: pSpeexBits read getBits;
Public property frameSize: int read getFrameSize;
Public property lib: unaSpeexLib read f_lib;
Public property mode: int read f_mode write setMode;
Public property modeInfo: pSpeexMode read getModeInfo;
Public property PLC_TUNING: int32 index SPEEX_SET_PLC_TUNING read getIntValue write setIntValue;
Public property samplingRate: int read getSamplingRate;
Public property state: pointer read f_state;

Description

Methods

Public constructor create(lib: unaSpeexLib; mode: int = SPEEX_MODEID_NB);

Mode could be SPEEX_MODEID_NB, SPEEX_MODEID_WB or SPEEX_MODEID_UWB.

Public function open(): bool;

Initializes processor.

Return True if encoder was initialized normally (or already was activated).

Protected function doGetFrameSize(): int; virtual; abstract;
 
Protected function doGetSamplingRate(): int; virtual; abstract;
 
Protected function doInit(): pointer; virtual; abstract;
 
Protected function enter(timeout: tTimeout = 3000): bool;
 
Public procedure BeforeDestruction(); override;
 
Public procedure close();

Releases resources used by processor.

Protected procedure afterOpen(); virtual;
 
Protected procedure beforeClose(); virtual;
 
Protected procedure doClose(); virtual; abstract;
 
Protected procedure doOpen(); virtual; abstract;
 
Protected procedure leave();
 

Properties

Public property active: bool read getActive write setActive;

True when initialized.

Public property bits: pSpeexBits read getBits;

Internal structure for bitstream.

Public property frameSize: int read getFrameSize;

Size of frame in samples.

Public property lib: unaSpeexLib read f_lib;
 
Public property mode: int read f_mode write setMode;

Mode could be SPEEX_MODEID_NB, SPEEX_MODEID_WB or SPEEX_MODEID_UWB.

Public property modeInfo: pSpeexMode read getModeInfo;
 
Public property PLC_TUNING: int32 index SPEEX_SET_PLC_TUNING read getIntValue write setIntValue;
 
Public property samplingRate: int read getSamplingRate;

Sampling rate expected by encoder.

Public property state: pointer read f_state;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09