| Description | Hierarchy | Fields | Methods | Properties | 
type unaSpeexCoder = class(unaObject)
Base class fro Speex encoder and decoder.
![]()  | 
constructor create(lib: unaSpeexLib; mode: int = SPEEX_MODEID_NB); | 
![]()  | 
function open(): bool; | 
![]()  | 
function doGetFrameSize(): int; virtual; abstract; | 
![]()  | 
function doGetSamplingRate(): int; virtual; abstract; | 
![]()  | 
function doInit(): pointer; virtual; abstract; | 
![]()  | 
function enter(timeout: tTimeout = 3000): bool; | 
![]()  | 
procedure BeforeDestruction(); override; | 
![]()  | 
procedure close(); | 
![]()  | 
procedure afterOpen(); virtual; | 
![]()  | 
procedure beforeClose(); virtual; | 
![]()  | 
procedure doClose(); virtual; abstract; | 
![]()  | 
procedure doOpen(); virtual; abstract; | 
![]()  | 
procedure leave(); | 
![]()  | 
property active: bool read getActive write setActive; | 
![]()  | 
property bits: pSpeexBits read getBits; | 
![]()  | 
property frameSize: int read getFrameSize; | 
![]()  | 
property lib: unaSpeexLib read f_lib; | 
![]()  | 
property mode: int read f_mode write setMode; | 
![]()  | 
property modeInfo: pSpeexMode read getModeInfo; | 
![]()  | 
property PLC_TUNING: int32 index SPEEX_SET_PLC_TUNING read getIntValue write setIntValue; | 
![]()  | 
property samplingRate: int read getSamplingRate; | 
![]()  | 
property state: pointer read f_state; | 
![]()  | 
constructor create(lib: unaSpeexLib; mode: int = SPEEX_MODEID_NB); | 
| 
 Mode could be SPEEX_MODEID_NB, SPEEX_MODEID_WB or SPEEX_MODEID_UWB.  | |
![]()  | 
function open(): bool; | 
| 
 Initializes processor. Return True if encoder was initialized normally (or already was activated).  | |
![]()  | 
function doGetFrameSize(): int; virtual; abstract; | 
![]()  | 
function doGetSamplingRate(): int; virtual; abstract; | 
![]()  | 
function doInit(): pointer; virtual; abstract; | 
![]()  | 
function enter(timeout: tTimeout = 3000): bool; | 
![]()  | 
procedure BeforeDestruction(); override; | 
![]()  | 
procedure close(); | 
| 
 Releases resources used by processor.  | |
![]()  | 
procedure afterOpen(); virtual; | 
![]()  | 
procedure beforeClose(); virtual; | 
![]()  | 
procedure doClose(); virtual; abstract; | 
![]()  | 
procedure doOpen(); virtual; abstract; | 
![]()  | 
procedure leave(); | 
![]()  | 
property active: bool read getActive write setActive; | 
| 
 True when initialized.  | |
![]()  | 
property bits: pSpeexBits read getBits; | 
| 
 Internal structure for bitstream.  | |
![]()  | 
property frameSize: int read getFrameSize; | 
| 
 Size of frame in samples.  | |
![]()  | 
property lib: unaSpeexLib read f_lib; | 
![]()  | 
property mode: int read f_mode write setMode; | 
| 
 Mode could be SPEEX_MODEID_NB, SPEEX_MODEID_WB or SPEEX_MODEID_UWB.  | |
![]()  | 
property modeInfo: pSpeexMode read getModeInfo; | 
![]()  | 
property PLC_TUNING: int32 index SPEEX_SET_PLC_TUNING read getIntValue write setIntValue; | 
![]()  | 
property samplingRate: int read getSamplingRate; | 
| 
 Sampling rate expected by encoder.  | |
![]()  | 
property state: pointer read f_state; | 
(c) 2012 Lake of Soft