Previous Next

IMiniportWaveCyclicStream::SetState

The SetState method sets the new state of playback or recording for the stream.

NTSTATUS
  SetState(
    IN KSSTATE  State
    );

Parameters

State
Specifies the new state for the stream. This parameter is a KSSTATE enumeration value. See the following Comments section.

Return Value

SetState returns STATUS_SUCCESS if the call was successful. Otherwise, the method returns an appropriate error code.

Headers

Declared in portcls.h. Include portcls.h.

Comments

For an audio filter graph, the four KSSTATE enumeration values are interpreted as follows:

For most miniport drivers, KSSTATE_ACQUIRE and KSSTATE_PAUSE are indistinguishable.

Transitions always occur in one of the following two sequences:

The IMiniportWaveCyclic::NewStream method sets the initial state of the stream to KSSTATE_STOP.

The SetState method is called at IRQL PASSIVE_LEVEL.

See Also

KSSTATE, KSPROPERTY_CONNECTION_STATE