Buffer.Play(Int32,BufferPlayFlags) Method (Microsoft.DirectX.DirectSound)

Begin playing the sound buffer, starting at the play cursor.

Definition

Visual Basic Public Sub Play( _
    ByVal priority As Integer, _
    ByVal flags As BufferPlayFlags _
)
C# public void Play(
    int priority,
    BufferPlayFlags flags
);
C++ public:
void Play(
    int priority,
    BufferPlayFlags flags
);
JScript public function Play(
    priority : int,
    flags : BufferPlayFlags
);

Parameters

priority System.Int32
An integer that represents the Priority for the sound, used by the voice manager when assigning hardware mixing resources. The lowest priority is 0, and the highest priority is 0xFFFFFFFF. If the buffer was created with the BufferCaps.LocationDefer property set to false, this value must be 0.
flags Microsoft.DirectX.DirectSound.BufferPlayFlags
One or more BufferPlayFlags enumerated values.

Applies To

SecondaryBuffer