Partager via


ACX_PEAKMETER_CALLBACKS structure (acxelements.h)

La structure ACX_PEAKMETER_CALLBACKS identifie les rappels de pilotes pour les opérations de picmètre ACX.

Syntaxe

typedef struct _ACX_PEAKMETER_CALLBACKS {
  ULONG                            Size;
  PFN_ACX_PEAKMETER_RETRIEVE_LEVEL EvtAcxPeakMeterRetrieveLevel;
  PFN_ACX_OBJECT_PROCESS_REQUEST   EvtAcxPeakMeterProcessRequest;
} ACX_PEAKMETER_CALLBACKS, *PACX_PEAKMETER_CALLBACKS;

Membres

Size

Longueur, en octets, de cette structure.

EvtAcxPeakMeterRetrieveLevel

Rappel ACX_PEAKMETER_RETRIEVE_LEVEL .

EvtAcxPeakMeterProcessRequest

Rappel EVT_ACX_OBJECT_PROCESS_REQUEST .

Remarques

Exemple

L’exemple d’utilisation est illustré ci-dessous.

    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;

Configuration requise pour ACX

Version ACX minimale : 1.0

Pour plus d’informations sur les versions d’ACX, consultez Vue d’ensemble des versions d’ACX.

Configuration requise

Condition requise Valeur
En-tête acxelements.h

Voir aussi