0

有什么方法可以查询 mci 设备以查询当前播放位置,以便我们可以从那里继续播放?

cmd.Format(L"status %d waveaudio position",m_iDeviceIDPlayer);

mcirez = mciSendString(cmd,buff.GetBuffer(),1024, NULL);

它给出了这个错误:“指定的设备未打开或未被 MCI 识别”

命令有问题吗?

4

1 回答 1

0
MCI_STATUS_PARMS status;
status.dwItem = MCI_STATUS_POSITION;
status.dwCallback = 0;

dwReturn = mciSendCommand(m_iDeviceIDPlayer,MCI_STATUS,MCI_STATUS_ITEM|MCI_WAIT,(DWORD_PTR)&status);     

Position -> status.dwReturn 是需要的位置。

于 2010-02-09T04:26:33.730 回答