// acxtargets.h
NTSTATUS AcxTargetStreamCreate(
WDFDEVICE Device,
PWDF_OBJECT_ATTRIBUTES Attributes,
PACX_TARGET_STREAM_CONFIG Config,
ACXTARGETSTREAM *TargetStream
);
View the official Windows Driver Kit DDI referenceNo description available.
The AcxTargetStreamCreate function is used to create a target stream.
DeviceA WDFDEVICE object (described in Summary of Framework Objects) that is associated with the current ACXCIRCUIT.
AttributesAdditional Attributes defined using a WDF_OBJECT_ATTRIBUTES structure that are used to set various object's values: cleanup and destroy callbacks, context type, and to specify its parent object.
ConfigAn initialized ACX_TARGET_STREAM_CONFIG structure that describes the configuration of the target stream.
TargetStreamA pointer to a location that receives a handle to the new ACXTARGETSTREAM 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.
Drivers should use the ACXSTREAMBRIDGE to automatically propagate an audio stream down-level to the other connected circuits.
WDF_OBJECT_ATTRIBUTES attributes;
PAGGREGATOR_PIN_CONTEXT pinCtx;
ACXSTREAM stream;
AGGREGATOR_STREAM_CONTEXT* streamCtx;
ACX_TARGET_STREAM_CONFIG targetStreamCfg;
streamCtx = GetAggregatorStreamContext(stream);
ASSERT(streamCtx);
streamCtx->StreamState = AcxStreamStateStop;
pinCtx = GetAggregatorPinContext(Pin);
WDF_OBJECT_ATTRIBUTES_INIT(&attributes);
attributes.ParentObject = stream;
...
ACX_TARGET_STREAM_CONFIG_INIT(&targetStreamCfg);
targetStreamCfg.TargetCircuit = pinCtx->TargetPins[i]->TargetCircuit;
targetStreamCfg.PinId = pinCtx->TargetPins[i]->TargetPinId;
targetStreamCfg.DataFormat = StreamFormat;
targetStreamCfg.SignalProcessingMode = SignalProcessingMode;
targetStreamCfg.OptionalParameters = VarArguments;
...
status = AcxTargetStreamCreate(Device, &attributes, &targetStreamCfg, &streamCtx->TargetStreams[i]);
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.