Description | Hierarchy | Fields | Methods | Properties |
type unaMsAcmDeviceHeader = class(unaObject)
Base class for storing the wave and stream headers of wave and ACM devices.
constructor create(device: unaMsAcmStreamDevice); |
|
function enter(timeout: tTimeout): bool; |
|
function getStatus(index: integer): bool; virtual; abstract; |
|
function isDoneHeader(): bool; virtual; abstract; |
|
function isInQueue(): bool; virtual; abstract; |
|
function prepare(): MMRESULT; virtual; |
|
function unprepare(): MMRESULT; virtual; |
|
procedure AfterConstruction(); override; |
|
procedure BeforeDestruction(); override; |
|
procedure leave(); |
|
procedure rePrepare(); virtual; |
|
procedure setStatus(index: integer; value: bool); virtual; abstract; |
property isFree: bool read f_isFree write f_isFree; |
constructor create(device: unaMsAcmStreamDevice); |
|
Creates device buffer header. This buffer is used to pass data to and from device. |
function enter(timeout: tTimeout): bool; |
|
function getStatus(index: integer): bool; virtual; abstract; |
|
Returns status of header. Descendant classes must override this method. |
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. |
function isInQueue(): bool; virtual; abstract; |
|
function prepare(): MMRESULT; virtual; |
|
Prepares the header before first usage. This class calls prepareHeader() method of device to do this. |
function unprepare(): MMRESULT; virtual; |
|
Unprepares the header before first usage. This class calls unprepareHeader() method of device to do this. |
procedure AfterConstruction(); override; |
|
procedure BeforeDestruction(); override; |
|
procedure leave(); |
|
procedure rePrepare(); virtual; |
|
Prepares the header after it was used once or more. |
procedure setStatus(index: integer; value: bool); virtual; abstract; |
|
Sets status of header. Descendant classes must override this method. |
property isFree: bool read f_isFree write f_isFree; |
|
(c) 2012 Lake of Soft