// acxstreams.h
NTSTATUS AcxStreamInitAssignAcxRtStreamCallbacks(
PACXSTREAM_INIT StreamInit,
PACX_RT_STREAM_CALLBACKS RtStreamCallbacks
);
View the official Windows Driver Kit DDI referenceNo description available.
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.
StreamInitAddress of a ACXSTREAM_INIT object used to define the stream initialization parameters.
RtStreamCallbacksAn ACX_RT_STREAM_CALLBACKS structure that defines the list of callbacks.
Returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code. For more information, see Using NTSTATUS Values.
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);
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.