Home Units Hierarchy Routines All identifiers

Class unaMsAcmDeviceHeader

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaMsAcmDeviceHeader = class(unaObject)

Description

Base class for storing the wave and stream headers of wave and ACM devices.

Hierarchy

Overview

Methods

Public constructor create(device: unaMsAcmStreamDevice);
Protected function enter(timeout: tTimeout): bool;
Protected function getStatus(index: integer): bool; virtual; abstract;
Protected function isDoneHeader(): bool; virtual; abstract;
Protected function isInQueue(): bool; virtual; abstract;
Protected function prepare(): MMRESULT; virtual;
Protected function unprepare(): MMRESULT; virtual;
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;
Protected procedure leave();
Protected procedure rePrepare(); virtual;
Protected procedure setStatus(index: integer; value: bool); virtual; abstract;

Properties

Public property isFree: bool read f_isFree write f_isFree;

Description

Methods

Public constructor create(device: unaMsAcmStreamDevice);

Creates device buffer header. This buffer is used to pass data to and from device.

Protected function enter(timeout: tTimeout): bool;
 
Protected function getStatus(index: integer): bool; virtual; abstract;

Returns status of header. Descendant classes must override this method.

Protected function isDoneHeader(): bool; virtual; abstract;

Returns true if header contains data what was produced or used by device and can be changed or re-used. Descendant classes must override this method.

Protected function isInQueue(): bool; virtual; abstract;
 
Protected function prepare(): MMRESULT; virtual;

Prepares the header before first usage. This class calls prepareHeader() method of device to do this.

Protected function unprepare(): MMRESULT; virtual;

Unprepares the header before first usage. This class calls unprepareHeader() method of device to do this.

Public procedure AfterConstruction(); override;
 
Public procedure BeforeDestruction(); override;
 
Protected procedure leave();
 
Protected procedure rePrepare(); virtual;

Prepares the header after it was used once or more.

Protected procedure setStatus(index: integer; value: bool); virtual; abstract;

Sets status of header. Descendant classes must override this method.

Properties

Public property isFree: bool read f_isFree write f_isFree;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09