struttura ACX_STREAMAUDIOENGINE_CALLBACKS (acxelements.h)
La struttura ACX_STREAMAUDIOENGINE_CALLBACKS identifica i callback del driver per le operazioni del motore audio di flusso ACX.
Sintassi
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;
Members
Size
Lunghezza, in byte, di questa struttura.
EvtAcxStreamAudioEngineAssignEffectsState
Callback EVT_ACX_STREAMAUDIOENGINE_ASSIGN_EFFECTS_STATE .
EvtAcxStreamAudioEngineRetrieveEffectsState
Callback EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_EFFECTS_STATE .
EvtAcxStreamAudioEngineRetrievePresentationPosition
Callback EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_PRESENTATION_POSITION .
EvtAcxStreamAudioEngineAssignCurrentWritePosition
Callback EVT_ACX_STREAMAUDIOENGINE_ASSIGN_CURRENT_WRITE_POSITION .
EvtAcxStreamAudioEngineRetrieveLinearBufferPosition
Callback EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_LINEAR_BUFFER_POSITION .
EvtAcxStreamAudioEngineAssignLastBufferPosition
Callback EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LAST_BUFFER_POSITION .
EvtAcxStreamAudioEngineAssignLoopbackProtection
Callback EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LOOPBACK_PROTECTION .
EvtAcxStreamAudioEngineProcessRequest
Callback EVT_ACX_OBJECT_PROCESS_REQUEST .
Commenti
Esempio
Di seguito è riportato un esempio di utilizzo.
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;
Requisiti di ACX
Versione minima di ACX: 1.0
Per altre informazioni sulle versioni ACX, vedere La panoramica della versione di ACX.
Requisiti
Requisito | Valore |
---|---|
Intestazione | acxelements.h |