Home Units Hierarchy Routines All identifiers

Class unaLibCELTencoder

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaLibCELTencoder = class(unaLibCELTcoder)

Description

libcelt encoder.

Hierarchy

Overview

Methods

Public function encode(pcm: pointer; len: int): int;
Protected function doIOCTL(req: int; var value: int32): int; override;
Protected function doOpen(): int; override;
Protected function write(data: pointer; len: int): int;
Protected procedure doClose(); override;

Properties

Public property bitrate: int read f_bitrate write setBitrate;

Description

Methods

Public function encode(pcm: pointer; len: int): int;

Encodes a frame of audio. Data will be notified via doDataAvail()/onDataAvail.

Parameters
pcm
PCM audio in signed 16-bit format (native endian).
len
Number of bytes in pcm.
Returns

Error code.

Protected function doIOCTL(req: int; var value: int32): int; override;
 
Protected function doOpen(): int; override;
 
Protected function write(data: pointer; len: int): int;

Fills sub-buffer with data.

Returns

number of bytes consumed by encoder on this call.

Protected procedure doClose(); override;
 

Properties

Public property bitrate: int read f_bitrate write setBitrate;

Desired bitrate, in kbps (24-120 for mono, 40-160 for stereo).

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09