我用低级音频函数编写一个播放指定的WAV文件的程序,在waveoutopen()中设置了回调函数,
播放的顺序是 waveOutOpen()->waveOutPrepareHeader()->waveOutWrite
根据MSND上写的如下:
WOM_CLOSE
Sent when the device is closed using the waveOutClose function.
WOM_DONE
Sent when the device driver is finished with a data block sent using the waveOutWrite function.
WOM_OPEN
Sent when the device is opened using the waveOutOpen function.
每当一个音频数据块播放完毕,设备驱动程序又会发出消息MM_DONE消息,可是我放一个1秒钟的wav文件,程序怎么刚用waveOutWrite()放音就转到了我写的回调函数中呢? 根本就没播放完啊!~ 而且也听不见声音啊!~ 我只想得到播放完的消息,怎么得不到啊!~ 是不是我的程序有问题啊!~
请大狭们 指导一下!~
播放的顺序是 waveOutOpen()->waveOutPrepareHeader()->waveOutWrite
根据MSND上写的如下:
WOM_CLOSE
Sent when the device is closed using the waveOutClose function.
WOM_DONE
Sent when the device driver is finished with a data block sent using the waveOutWrite function.
WOM_OPEN
Sent when the device is opened using the waveOutOpen function.
每当一个音频数据块播放完毕,设备驱动程序又会发出消息MM_DONE消息,可是我放一个1秒钟的wav文件,程序怎么刚用waveOutWrite()放音就转到了我写的回调函数中呢? 根本就没播放完啊!~ 而且也听不见声音啊!~ 我只想得到播放完的消息,怎么得不到啊!~ 是不是我的程序有问题啊!~
请大狭们 指导一下!~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货