structure ACX_STREAMAUDIOENGINE_CALLBACKS (acxelements.h)
La structure ACX_STREAMAUDIOENGINE_CALLBACKS identifie les rappels de pilotes pour les opérations du moteur audio de flux ACX.
Syntaxe
typedef struct _ACX_STREAMAUDIOENGINE_CALLBACKS {
ULONG Size;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_EFFECTS_STATE EvtAcxStreamAudioEngineAssignEffectsState;
PFN_ACX_STREAMAUDIOENGINE_RETRIEVE_EFFECTS_STATE EvtAcxStreamAudioEngineRetrieveEffectsState;
PFN_ACX_STREAMAUDIOENGINE_RETRIEVE_PRESENTATION_POSITION EvtAcxStreamAudioEngineRetrievePresentationPosition;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_CURRENT_WRITE_POSITION EvtAcxStreamAudioEngineAssignCurrentWritePosition;
PFN_ACX_STREAMAUDIOENGINE_RETRIEVE_LINEAR_BUFFER_POSITION EvtAcxStreamAudioEngineRetrieveLinearBufferPosition;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_LAST_BUFFER_POSITION EvtAcxStreamAudioEngineAssignLastBufferPosition;
PFN_ACX_STREAMAUDIOENGINE_ASSIGN_LOOPBACK_PROTECTION EvtAcxStreamAudioEngineAssignLoopbackProtection;
PFN_ACX_OBJECT_PROCESS_REQUEST EvtAcxStreamAudioEngineProcessRequest;
} ACX_STREAMAUDIOENGINE_CALLBACKS, *PACX_STREAMAUDIOENGINE_CALLBACKS;
Membres
Size
Longueur, en octets, de cette structure.
EvtAcxStreamAudioEngineAssignEffectsState
Rappel EVT_ACX_STREAMAUDIOENGINE_ASSIGN_EFFECTS_STATE .
EvtAcxStreamAudioEngineRetrieveEffectsState
Rappel EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_EFFECTS_STATE .
EvtAcxStreamAudioEngineRetrievePresentationPosition
Rappel EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_PRESENTATION_POSITION .
EvtAcxStreamAudioEngineAssignCurrentWritePosition
Rappel EVT_ACX_STREAMAUDIOENGINE_ASSIGN_CURRENT_WRITE_POSITION .
EvtAcxStreamAudioEngineRetrieveLinearBufferPosition
Rappel EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_LINEAR_BUFFER_POSITION .
EvtAcxStreamAudioEngineAssignLastBufferPosition
Rappel EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LAST_BUFFER_POSITION .
EvtAcxStreamAudioEngineAssignLoopbackProtection
Rappel EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LOOPBACK_PROTECTION .
EvtAcxStreamAudioEngineProcessRequest
Rappel EVT_ACX_OBJECT_PROCESS_REQUEST .
Remarques
Exemple
L’exemple d’utilisation est illustré ci-dessous.
ACX_STREAMAUDIOENGINE_CALLBACKS streamAudioEngineCallbacks;
// Create the AudioEngine element to control offloaded streaming.
ACX_STREAMAUDIOENGINE_CALLBACKS_INIT(&streamAudioEngineCallbacks);
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignEffectsState = CodecR_EvtAcxStreamAudioEngineAssignEffectsState;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineRetrieveEffectsState = CodecR_EvtAcxStreamAudioEngineRetrieveEffectsState;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineRetrievePresentationPosition = CodecR_EvtAcxStreamAudioEngineRetrievePresentationPosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignCurrentWritePosition = CodecR_EvtAcxStreamAudioEngineAssignCurrentWritePosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineRetrieveLinearBufferPosition = CodecR_EvtAcxStreamAudioEngineRetrieveLinearBufferPosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignLastBufferPosition = CodecR_EvtAcxStreamAudioEngineAssignLastBufferPosition;
streamAudioEngineCallbacks.EvtAcxStreamAudioEngineAssignLoopbackProtection = CodecR_EvtAcxStreamAudioEngineAssignLoopbackProtection;
Configuration requise d’ACX
Version minimale d’ACX : 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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour