Compartir a través de


estructura ACX_STREAMAUDIOENGINE_CALLBACKS (acxelements.h)

La estructura de ACX_STREAMAUDIOENGINE_CALLBACKS identifica las devoluciones de llamada del controlador para las operaciones del motor de audio de secuencia acX.

Sintaxis

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;

Miembros

Size

Longitud, en bytes, de esta estructura.

EvtAcxStreamAudioEngineAssignEffectsState

Devolución de llamada de EVT_ACX_STREAMAUDIOENGINE_ASSIGN_EFFECTS_STATE .

EvtAcxStreamAudioEngineRetrieveEffectsState

Devolución de llamada EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_EFFECTS_STATE .

EvtAcxStreamAudioEngineRetrievePresentationPosition

Devolución de llamada EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_PRESENTATION_POSITION .

EvtAcxStreamAudioEngineAssignCurrentWritePosition

Devolución de llamada EVT_ACX_STREAMAUDIOENGINE_ASSIGN_CURRENT_WRITE_POSITION .

EvtAcxStreamAudioEngineRetrieveLinearBufferPosition

Devolución de llamada EVT_ACX_STREAMAUDIOENGINE_RETRIEVE_LINEAR_BUFFER_POSITION .

EvtAcxStreamAudioEngineAssignLastBufferPosition

Devolución de llamada EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LAST_BUFFER_POSITION .

EvtAcxStreamAudioEngineAssignLoopbackProtection

Devolución de llamada EVT_ACX_STREAMAUDIOENGINE_ASSIGN_LOOPBACK_PROTECTION .

EvtAcxStreamAudioEngineProcessRequest

Devolución de llamada EVT_ACX_OBJECT_PROCESS_REQUEST .

Comentarios

Ejemplo

A continuación se muestra un ejemplo de uso.

        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;

Requisitos de ACX

Versión mínima de ACX: 1.0

Para obtener más información sobre las versiones de ACX, consulte Introducción a la versión de ACX.

Requisitos

Requisito Valor
Header acxelements.h

Consulte también