AcxStreamInitAssignAcxRtStreamCallbacks function (acxstreams.h)

The AcxStreamInitAssignAcxRtStreamCallbacks function sets the RT callbacks using an ACXSTREAM_INIT object and a ACX_RT_STREAM_CALLBACKS structure. For more information about ACX Objects, see ACX - Summary of ACX Objects.

Syntax

NTSTATUS AcxStreamInitAssignAcxRtStreamCallbacks(
  PACXSTREAM_INIT          StreamInit,
  PACX_RT_STREAM_CALLBACKS RtStreamCallbacks
);

Parameters

StreamInit

Address of a ACXSTREAM_INIT object used to define the stream initialization parameters.

RtStreamCallbacks

An ACX_RT_STREAM_CALLBACKS structure that defines the list of callbacks.

Return value

Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.

Remarks

Example

Example usage is shown below.

    ACX_RT_STREAM_CALLBACKS         rtCallbacks; 
 
    //
    // Init RT streaming callbacks.
    //
    ACX_RT_STREAM_CALLBACKS_INIT(&rtCallbacks);
    rtCallbacks.EvtAcxStreamGetHwLatency            = Dsp_EvtStreamGetHwLatency;
    rtCallbacks.EvtAcxStreamAllocateRtPackets       = Dsp_EvtStreamAllocateRtPackets;
    rtCallbacks.EvtAcxStreamFreeRtPackets           = Dsp_EvtStreamFreeRtPackets;
    rtCallbacks.EvtAcxStreamGetCapturePacket        = DspC_EvtStreamGetCapturePacket;
    rtCallbacks.EvtAcxStreamGetCurrentPacket        = Dsp_EvtStreamGetCurrentPacket;
    rtCallbacks.EvtAcxStreamGetPresentationPosition = Dsp_EvtStreamGetPresentationPosition;
    
    status = AcxStreamInitAssignAcxRtStreamCallbacks(StreamInit, &rtCallbacks);

ACX requirements

Minimum ACX version: 1.0

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

Requirements

Requirement Value
Header acxstreams.h
IRQL PASSIVE_LEVEL

See also