|
发表于 2004-6-22 11:01:00
|
显示全部楼层
Re:DirectSound 的播放应该放在那啊
哦,不好意思,很早以前看的那个资料有误,不过dsound是不好做播放次数的控制
IDirectSoundBuffer8: lay
The Play method causes the sound buffer to play, starting at the play cursor.
Syntax
HRESULT Play(
DWORD dwReserved1,
DWORD dwPriority,
DWORD dwFlags
);
Parameters
dwReserved1
Reserved. Must be 0.
dwPriority
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 not created with the DSBCAPS_LOCDEFER flag, this value must be 0.
dwFlags
Flags specifying how to play the buffer. The following flags are defined:
Looping flag
DSBPLAY_LOOPING
贴出官方解释纠正上面的错误
|
|