The waveOutPause function pauses playback on the given waveform-audio output device. The current position is saved. Use thewaveOutRestart function to resume playback from the current position.
waveOutPause 函数暂停回放,给定的waveform音频输出设备.当前位置被保存.使用waveOutRestart函数恢复回放,从当前位置.Syntax
MMRESULT waveOutPause( HWAVEOUT hwo);
Parameters
-
hwo
-
Handle to the waveform-audio output device.
Return value
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.
返回 MMSYSERR_NOERROR,如果成功.否则产生一个错误,可能的错误值如下所示:
Return code | Description |
---|---|
| Specified device handle is invalid. |
| No device driver is present. |
| Unable to allocate or lock memory. |
| Specified device is synchronous and does not support pausing. |
Remarks
Calling this function when the output is already paused has no effect, and the function returns zero.
如果指定的输出已经暂停,调用本函数将没有效果,函数返回0
Requirements
Minimum supported client | Windows 2000 Professional |
---|---|
Minimum supported server | Windows 2000 Server |
Header |
|
Library |
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 9/7/2011