Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The SetState
method sets the stream's transport state to a new state value.
Syntax
NTSTATUS SetState(
[in] KSSTATE State
);
Parameters
[in] State
Specifies the new state that the stream is to be set to. This parameter is a KSSTATE enumeration value. For more information, see the following Remarks section.
Return value
SetState
returns STATUS_SUCCESS if the call was successful. Otherwise, the method returns an appropriate error code.
Remarks
For an audio filter graph, the four KSSTATE enumeration values are interpreted as follows:
-
KSSTATE_RUN
Data transport in the current audio filter graph is running and functioning as normal.
-
KSSTATE_ACQUIRE
This is a transitional state that helps to manage the transition between KSSTATE_RUN and KSSTATE_STOP.
-
KSSTATE_PAUSE
This is a transitional state that helps to manage the transition between KSSTATE_RUN and KSSTATE_STOP.
-
KSSTATE_STOP
Data transport is stopped in the current audio filter graph.
Transitions always occur in one of the following two sequences:
- STOP -> ACQUIRE -> PAUSE -> RUN
- RUN -> PAUSE -> ACQUIRE -> STOP
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Header | portcls.h (include Portcls.h) |
IRQL | PASSIVE_LEVEL |