简体   繁体   中英

Is there a way to pause/stop a mp3 file playing with mcisendstring with the “wait” option?

I am currently trying to create an mp3 player with the commands offered in this answer.

Actually it's working pretty great, but right now I am trying to implement a continuos play with

mciSendString("play mp3 wait", NULL, 0, NULL);

This command is supposed to play an mp3 file from start to finish and wait until it has actually finished playing.

This is working correctly, however, I was convinced before trying it out, that pause or stop commands which work with usual play would work here as well:

mciSendString("pause mp3", NULL, 0, NULL);

mciSendString("stop mp3", NULL, 0, NULL);

However, every command seems to be unresponsive towards the running mp3.

There are no error messages or anything, it just doesn't work the way I have it right now.

Is there any way to accomplish this? Any additional parameters I would have to send with my pause/stop commands?

如果将对play命令进行修改,则可以使用wait / stop命令,以避免等待* .mp3播放完毕。

mciSendString("play mp3", NULL, 0, NULL);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM