注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

面包会有的

php asp 高端网站开发 微信网站开发 视频会议软硬件

 
 
 

日志

 
 

waveOutPrepareHeader  

2011-11-13 22:07:14|  分类: 声音播放 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

The waveOutPrepareHeader function prepares a waveform-audio data block for playback.

Syntax

  1. MMRESULT waveOutPrepareHeader(
  2.   HWAVEOUT hwo,
  3.   LPWAVEHDR pwh,
  4.   UINT cbwh
  5. );

Parameters

hwo

Handle to the waveform-audio output device.

pwh

Pointer to a WAVEHDR structure that identifies the data block to be prepared.

cbwh

Size, in bytes, of the WAVEHDR structure.

Return value

Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error values include the following.

Return codeDescription
MMSYSERR_INVALHANDLE

Specified device handle is invalid.

MMSYSERR_NODRIVER

No device driver is present.

MMSYSERR_NOMEM

Unable to allocate or lock memory.

 

Remarks

Set the lpDatadwBufferLength, and dwFlags members of the WAVEHDR structure before calling this function. Set the dwFlagsmember to zero.

The dwFlagsdwBufferLength, and dwLoops members of the WAVEHDR structure can change between calls to this function and thewaveOutWrite function. If you change the size specified by dwBufferLength before the call to waveOutWrite, the new value must be less than the prepared value.

If the method succeeds, the WHDR_PREPARED flag is set in the dwFlags member of the WAVEHDR structure.

Preparing a header that has already been prepared has no effect, and the function returns zero.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Mmsystem.h (include Windows.h)

Library

Winmm.lib

DLL

Winmm.dll

See also

Waveform Audio
Waveform Functions

 

 

Send comments about this topic to Microsoft

Build date: 9/7/2011

  评论这张
 
阅读(512)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017