Home > Back-end >  Please use MCI play audio, audio file format should be what kind of? Like this is there a problem? A
Please use MCI play audio, audio file format should be what kind of? Like this is there a problem? A

Time:09-22

# include
# include
# include
# include
# include
# pragma comment (lib, "winmm. Lib")
using namespace std;

Int main ()
{
The MCI_OPEN_PARMS OpenParms;//open the equipment
OpenParms. LpstrDeviceType=NULL;//"mpegvideo";
OpenParms. WDeviceID=NULL;
OpenParms. LpstrElementName=_T (" C: \ \ Users \ \ wnily \ \ source \ \ repos \ \ fltk_work2 \ \ fltk_work2 \ \ W& W - God Is A Girl. Mp3 ");
McISendCommand (NULL, MCI_OPEN MCI_OPEN_ELEMENT, (DWORD) & amp; OpenParms);
MCI_PLAY_PARMS PlayParms;
PlayParms. DwFrom=0;
McISendCommand (OpenParms wDeviceID MCI_PLAY, MCI_FROM, (DWORD) & amp; PlayParms);
}
  • Related