mciSendString循环播放语句应该怎么写?

0
#include<stdio.h>
#include<graphics.h>
#pragma comment(lib,"Winmm.lib")// 引用 Windows Multimedia API,用于播放音乐
int main()
{
    mciSendString("open \"Pianoboy高至豪 - 安静的午后.mp3\" alias BGM ", 0, 0, 0);
	initgraph(1080, 720, EW_DBLCLKS);

//	循环播放音乐语句
	
    IMAGE m;
	loadimage(&m, "1.png", 1080, 720);
	putimage(0, 0, &m);
	getchar();
	closegraph();
    mciSendString("close BGM", 0, 0, 0);
	return 0;
}

ava
十年如梦✘

2020-8-11

0
0

mciSendString("play BGM  repeat ", NULL, 0, NULL);

这样写就行了

ava
慢热友人.

2020-8-11