Home Units Hierarchy Routines All identifiers

Class unaMsAcm

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaMsAcm = class(unaObject)

Description

This class holds a list of drivers installed on the system. Driver usually corresponds to one specific audio format and may contain converters, codecs and filters. You should explicitly call enumDrivers() method to enumerate installed drivers.

Every installed driver has unique manufacturer and product identifiers (MID and PID). You can use these identifiers to locate specific driver. Use getDriver() method to retrieve driver by index or MID/PID pair.

Hierarchy

Overview

Methods

Public constructor create();
Public destructor Destroy(); override;
Public function getDriver(mid, pid: unsigned): unaMsAcmDriver; overload;
Public function getDriver(index: unsigned): unaMsAcmDriver; overload;
Public function getDriverByFormatTag(formatTag: unsigned): unaMsAcmDriver;
Public function getDriverCount(): unsigned;
Public function openDriver(const driverLibrary: wString): unaMsAcmDriver;
Public function preparePafd(var pafd: ACMFORMATDETAILS; tag: unsigned = 0; index: unsigned = 0; driver: unsigned = 0): bool;
Public procedure closeDriver(driver: unaMsAcmDriver);
Public procedure enumDrivers(flags: uint = 0);
Protected procedure addEnumedDriver(id: HACMDRIVERID; support: unsigned); virtual;

Properties

Public property countCodecs : unsigned index ACM_METRIC_COUNT_CODECS read getACMCount;
Public property countConverters: unsigned index ACM_METRIC_COUNT_CONVERTERS read getACMCount;
Public property countDisabled : unsigned index ACM_METRIC_COUNT_DISABLED read getACMCount;
Public property countDrivers : unsigned index ACM_METRIC_COUNT_DRIVERS read getACMCount;
Public property countFilters : unsigned index ACM_METRIC_COUNT_FILTERS read getACMCount;
Public property countHardware : unsigned index ACM_METRIC_COUNT_HARDWARE read getACMCount;
Public property countLocalCodecs : unsigned index ACM_METRIC_COUNT_LOCAL_CODECS read getACMCount;
Public property countLocalConverters: unsigned index ACM_METRIC_COUNT_LOCAL_CONVERTERS read getACMCount;
Public property countLocalDisabled : unsigned index ACM_METRIC_COUNT_LOCAL_DISABLED read getACMCount;
Public property countLocalDrivers : unsigned index ACM_METRIC_COUNT_LOCAL_DRIVERS read getACMCount;
Public property countLocalFilters : unsigned index ACM_METRIC_COUNT_LOCAL_FILTERS read getACMCount;
Public property version: unsigned read f_version;

Description

Methods

Public constructor create();

Allocates internal structures needed for class instance.

Public destructor Destroy(); override;
 
Public function getDriver(mid, pid: unsigned): unaMsAcmDriver; overload;

Searches the list of drivers for driver with specified mid and pid values.

Public function getDriver(index: unsigned): unaMsAcmDriver; overload;

Returns driver from the list of drivers. Driver is specified by the index in the list (starting from 0).

Public function getDriverByFormatTag(formatTag: unsigned): unaMsAcmDriver;

Returns driver from the list of drivers. Driver is specified by the format tag supported by driver.

Public function getDriverCount(): unsigned;

Returns number of drivers enumerated by enumDrivers() method.

Public function openDriver(const driverLibrary: wString): unaMsAcmDriver;

Opens installable ACM driver.

Public function preparePafd(var pafd: ACMFORMATDETAILS; tag: unsigned = 0; index: unsigned = 0; driver: unsigned = 0): bool;

Allocates given ACMFORMATDETAILS structure.

Public procedure closeDriver(driver: unaMsAcmDriver);

Closes installable ACM driver opened previously with openDriver();

Public procedure enumDrivers(flags: uint = 0);

Enumerates installed ACM drivers. The following values are defined for flags parameter:

  • (ACM_DRIVERENUMF_DISABLED - Disabled ACM drivers should be included in the enumeration)

  • (ACM_DRIVERENUMF_NOLOCAL - Only global drivers should be included in the enumeration)

Enumerated drivers are stored in driver list. You can access them using the getDriver() method.

Protected procedure addEnumedDriver(id: HACMDRIVERID; support: unsigned); virtual;

Adds driver to the list of drivers.

Properties

Public property countCodecs : unsigned index ACM_METRIC_COUNT_CODECS read getACMCount;

Number of global ACM compressor or decompressor drivers in the system.

Public property countConverters: unsigned index ACM_METRIC_COUNT_CONVERTERS read getACMCount;

Number of global ACM converter drivers in the system.

Public property countDisabled : unsigned index ACM_METRIC_COUNT_DISABLED read getACMCount;

Number of global disabled ACM drivers (of all support types) in the system.

Public property countDrivers : unsigned index ACM_METRIC_COUNT_DRIVERS read getACMCount;

Total number of enabled global ACM drivers (of all support types) in the system.

Public property countFilters : unsigned index ACM_METRIC_COUNT_FILTERS read getACMCount;

Number of global ACM filter drivers in the system.

Public property countHardware : unsigned index ACM_METRIC_COUNT_HARDWARE read getACMCount;

Number of global ACM hardware drivers in the system.

Public property countLocalCodecs : unsigned index ACM_METRIC_COUNT_LOCAL_CODECS read getACMCount;

Number of local ACM compressor drivers, ACM decompressor drivers, or both for the calling task.

Public property countLocalConverters: unsigned index ACM_METRIC_COUNT_LOCAL_CONVERTERS read getACMCount;

Number of local ACM converter drivers for the calling task.

Public property countLocalDisabled : unsigned index ACM_METRIC_COUNT_LOCAL_DISABLED read getACMCount;

Total number of local disabled ACM drivers, of all support types, for the calling task.

Public property countLocalDrivers : unsigned index ACM_METRIC_COUNT_LOCAL_DRIVERS read getACMCount;

Total number of enabled local ACM drivers (of all support types) for the calling task.

Public property countLocalFilters : unsigned index ACM_METRIC_COUNT_LOCAL_FILTERS read getACMCount;

Number of local ACM filter drivers for the calling task.

Public property version: unsigned read f_version;

Version of ACM.

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09