Description | Hierarchy | Fields | Methods | Properties |
type unaG7221Coder = class(unaObject)
G.722.1 Coder
constructor create(sampleRate: int = 16000; bitrate: int = 24000); |
|
destructor Destroy(); override; |
|
function write(data: pointer; len: uint): int; |
|
function chunkSize(): uint; virtual; abstract; |
|
function init(sampleRate: int = 16000; bitrate: int = 24000): bool; virtual; |
|
function process(ptr: pointer; len: uint): int; virtual; abstract; |
|
procedure close(); |
|
procedure open(); |
|
procedure notify(stream: pointer; sizeBytes: int); virtual; |
property framesize: int32 read f_framesize; |
|
property number_of_16bit_words_per_frame: int32 read f_number_of_16bit_words_per_frame; |
|
property number_of_bits_per_frame: int32 read f_number_of_bits_per_frame; |
constructor create(sampleRate: int = 16000; bitrate: int = 24000); |
|
destructor Destroy(); override; |
|
function write(data: pointer; len: uint): int; |
|
Sends more data to coder.
Parameters
Returnsnumber of full frames processed in this call. |
function chunkSize(): uint; virtual; abstract; |
|
Size of portion of data (frame) the coder is expecting to process at once. In bytes. |
function init(sampleRate: int = 16000; bitrate: int = 24000): bool; virtual; |
|
function process(ptr: pointer; len: uint): int; virtual; abstract; |
|
Encodes/decodes data. Returnsnumber of full frames processed. |
procedure close(); |
|
Closes the coder. |
procedure open(); |
|
Opens the coder. |
procedure notify(stream: pointer; sizeBytes: int); virtual; |
|
Called when new encoded/decoded frame is ready. |
property framesize: int32 read f_framesize; |
|
Size of mono frame in samples. |
property number_of_16bit_words_per_frame: int32 read f_number_of_16bit_words_per_frame; |
|
Size of frame in 16-bit words. |
property number_of_bits_per_frame: int32 read f_number_of_bits_per_frame; |
|
Size of frame in bits. |
(c) 2012 Lake of Soft