DWORD CWave::Continue()
{
DWORD dwResult=0;
if(m_nElementID)
{//Some Device not support MCI_RESUME
dwResult=mciSendCommand(m_nElementID,MCI_PLAY,NULL,NULL);
//display error message if failed
if(dwResult)
{
DisplayErrorMsg(dwResult);
Stop();
}
}
return dwResult;
}这个子程序在文件后缀是.wav的时候运行是通过的,但是如果是播放mp3文件,dwResult=mciSendCommand(m_nElementID,MCI_PLAY,NULL,NULL)语句就会出错,不知道是什么原因?是否是因为格式不支持呢?
{
DWORD dwResult=0;
if(m_nElementID)
{//Some Device not support MCI_RESUME
dwResult=mciSendCommand(m_nElementID,MCI_PLAY,NULL,NULL);
//display error message if failed
if(dwResult)
{
DisplayErrorMsg(dwResult);
Stop();
}
}
return dwResult;
}这个子程序在文件后缀是.wav的时候运行是通过的,但是如果是播放mp3文件,dwResult=mciSendCommand(m_nElementID,MCI_PLAY,NULL,NULL)语句就会出错,不知道是什么原因?是否是因为格式不支持呢?
也就是解码器不一样啊
小妹是论坛新人, 能快速得到大家指点不胜感激.