Home Units Hierarchy Routines All identifiers

Class unaMpgLibDecoder

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaMpgLibDecoder = class(unaThread)

Description

MPGLIB decoder wrapper. (Old one, do not use)

Hierarchy

Overview

Methods

Public constructor create(const libName: wString = '');
Public function open(): int;
Protected function execute(threadIndex: unsigned): int; override;
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;
Public procedure close();
Public procedure loadLibrary(const libName: wString = '');
Public procedure unloadLibrary();
Public procedure write(data: pointer; len: unsigned);
Protected procedure doWrite(data: pointer; len: unsigned); virtual;
Protected procedure notifyData(data: pointer; size: unsigned; var copyToStream: bool); virtual;
Protected procedure notifySamplingChange(rate, bits, channels: unsigned); virtual;
Protected procedure startIn(); override;
Protected procedure startOut(); override;

Properties

Public property ensureLayer: int read f_ensureLayer write f_ensureLayer default -1;
Public property errorCode: int read f_errorCode;
Public property inDataSize: unsigned read getInDataSize;
Public property MPSTR: PMPSTR read f_MPSTR;
Public property onApplySampling: mpglibApplySamplingEvent read f_onApplySampling write f_onApplySampling;
Public property onDataAvail: mpgLibDataAvailEvent read f_onDataAvail write f_onDataAvail;

Description

Methods

Public constructor create(const libName: wString = '');
 
Public function open(): int;
 
Protected function execute(threadIndex: unsigned): int; override;
 
Public procedure AfterConstruction(); override;
 
Public procedure BeforeDestruction(); override;
 
Public procedure close();
 
Public procedure loadLibrary(const libName: wString = '');
 
Public procedure unloadLibrary();
 
Public procedure write(data: pointer; len: unsigned);
 
Protected procedure doWrite(data: pointer; len: unsigned); virtual;
 
Protected procedure notifyData(data: pointer; size: unsigned; var copyToStream: bool); virtual;
 
Protected procedure notifySamplingChange(rate, bits, channels: unsigned); virtual;
 
Protected procedure startIn(); override;
 
Protected procedure startOut(); override;
 

Properties

Public property ensureLayer: int read f_ensureLayer write f_ensureLayer default -1;
 
Public property errorCode: int read f_errorCode;
 
Public property inDataSize: unsigned read getInDataSize;

set to 1, 2, or 3 to better protection against broken MP3 files

Public property MPSTR: PMPSTR read f_MPSTR;

0 for OK

Public property onApplySampling: mpglibApplySamplingEvent read f_onApplySampling write f_onApplySampling;
 
Public property onDataAvail: mpgLibDataAvailEvent read f_onDataAvail write f_onDataAvail;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09