IMiniportWaveRTStream::SetState method (portcls.h)
The SetState method changes the transport state of the audio stream.
Syntax
NTSTATUS SetState(
[in] KSSTATE State
);
Parameters
[in] State
Specifies the new state of the stream. This parameter is a KSSTATE enumeration value.
Return value
SetState returns STATUS_SUCCESS if the call was successful. Otherwise, the method returns an appropriate error status code.
Remarks
For most driver implementations, KSSTATE_ACQUIRE and KSSTATE_PAUSE are indistinguishable.
Transitions always occur in one of the following two sequences:
STOP → ACQUIRE → PAUSE → RUN
RUN → PAUSE → ACQUIRE → STOP
The IMiniportWaveRT::NewStream method sets the initial state of the stream to KSSTATE_STOP.
Requirements
Requirement | Value |
---|---|
Header | portcls.h |
IRQL | PASSIVE_LEVEL |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for