Skip to content

Latest commit

 

History

History
96 lines (76 loc) · 2.5 KB

ns-acxelements-acx_peakmeter_callbacks.md

File metadata and controls

96 lines (76 loc) · 2.5 KB
UID tech.root title ms.date targetos description prerelease req.construct-type req.ddi-compliance req.dll req.header req.include-header req.kmdf-ver req.lib req.max-support req.redist req.target-min-winverclnt req.target-min-winversvr req.target-type req.typenames req.umdf-ver req.unicode-ansi topic_type api_type api_location api_name f1_keywords dev_langs
NS:acxelements._ACX_PEAKMETER_CALLBACKS
audio
ACX_PEAKMETER_CALLBACKS
08/01/2022
Windows
The ACX_PEAKMETER_CALLBACKS structure identifies the driver callbacks for ACX peakmeter operations.
false
structure
acxelements.h
ACX_PEAKMETER_CALLBACKS, *PACX_PEAKMETER_CALLBACKS
apiref
HeaderDef
acxelements.h
_ACX_PEAKMETER_CALLBACKS
PACX_PEAKMETER_CALLBACKS
ACX_PEAKMETER_CALLBACKS
_ACX_PEAKMETER_CALLBACKS
acxelements/_ACX_PEAKMETER_CALLBACKS
PACX_PEAKMETER_CALLBACKS
acxelements/PACX_PEAKMETER_CALLBACKS
ACX_PEAKMETER_CALLBACKS
acxelements/ACX_PEAKMETER_CALLBACKS
c++

-description

The ACX_PEAKMETER_CALLBACKS structure identifies the driver callbacks for ACX peakmeter operations.

-struct-fields

-field Size

The length, in bytes, of this structure.

-field EvtAcxPeakMeterRetrieveLevel

The ACX_PEAKMETER_RETRIEVE_LEVEL callback.

-field EvtAcxPeakMeterProcessRequest

The EVT_ACX_OBJECT_PROCESS_REQUEST callback.

-remarks

Example

Example usage is shown below.

    ACX_PEAKMETER_CALLBACKS         peakmeterCallbacks;
    ACX_PEAKMETER_CONFIG            peakmeterCfg;
    ACXPEAKMETER                    peakmeterElement;

...
        ACX_PEAKMETER_CALLBACKS peakmeterCallbacks;
        ACX_PEAKMETER_CALLBACKS_INIT(&peakmeterCallbacks);
        peakmeterCallbacks.EvtAcxPeakMeterRetrieveLevel = CodecR_EvtPeakMeterRetrieveLevelCallback;

        ACX_PEAKMETER_CONFIG peakmeterCfg;
        ACX_PEAKMETER_CONFIG_INIT(&peakmeterCfg);
        peakmeterCfg.ChannelsCount = MAX_CHANNELS;
        peakmeterCfg.Minimum = PEAKMETER_MINIMUM;
        peakmeterCfg.Maximum = PEAKMETER_MAXIMUM;
        peakmeterCfg.SteppingDelta = PEAKMETER_STEPPING_DELTA;
        peakmeterCfg.Callbacks = &peakmeterCallbacks;

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

-see-also