这里没有什么特别的要求,只要先调用WaveOutPrepareHeader附接一个缓冲区,<br>然后就可以通过waveOutwrite来播放了。<br>下面是我做过的一个播放程序的一部分:<br> wResult:=waveOutPrepareHeader(WaveOut,pMyWaveOutHdr,sizeof(TWaveHdr));<br> if wResult<>0 then showMessage('Failed to prepare header'+inttostr(wResult));<br><br> wResult:=WaveOutWrite(WaveOut,pMywaveOutHdr,sizeof(TWaveHdr));<br> if wResult<>0 then ShowMessage('Cann''t write to device!'+inttostr(wResult));<br>