// acxelements.h
ACXSTREAM AcxStreamAudioEngineGetStream(
ACXSTREAMAUDIOENGINE StreamAudioEngine
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxStreamAudioEngineGetStream function retrieves the ACXSTREAM object associated with the given stream audio engine object. For more information about ACX objects, see Summary of ACX Objects.
StreamAudioEngineAn existing, initialized, ACXSTREAMAUDIOENGINE object. For more information about ACX objects, see Summary of ACX Objects.
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.
NTSTATUS
DspR_EvtAcxStreamAudioEngineRetrievePresentationPosition(
_In_ ACXSTREAMAUDIOENGINE StreamAudioEngine,
_Out_ PULONGLONG PositionInBlocks,
_Out_ PULONGLONG QPCPosition
)
{
NTSTATUS status = STATUS_INVALID_PARAMETER;
ACXSTREAM stream;
PDSP_STREAM_CONTEXT ctx;
COffloadStreamEngine* streamEngine = NULL;
PAGED_CODE();
stream = AcxStreamAudioEngineGetStream(StreamAudioEngine);
if (stream)
{
ctx = GetDspStreamContext(stream);
streamEngine = static_cast<COffloadStreamEngine*>(ctx->StreamEngine);
status = streamEngine->GetPresentationPosition(PositionInBlocks, QPCPosition);
}
return status;
}
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.