mciSendString("close BGM1", 0, 0, 0);
mciSendString("open ./res/13373.mp3 alias BGM1", 0, 0, 0);
mciSendString("play BGM1 ", 0, 0, 0);
记得要先关闭要音频后才能够再次播放
或者直接使用repeat
mciSendString(“play BGM repeat”, 0, 0, 0);
mciSendString("close BGM1", 0, 0, 0);
mciSendString("open ./res/13373.mp3 alias BGM1", 0, 0, 0);
mciSendString("play BGM1 ", 0, 0, 0);
记得要先关闭要音频后才能够再次播放
或者直接使用repeat
mciSendString(“play BGM repeat”, 0, 0, 0);