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

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

It actually works very well, but right now I'm trying to implement a continuous play game using

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

This command should play the mp3 file from start to finish and wait until it really finishes the game.

This works correctly, however, before I tried it, I was convinced that pause or stop commands that work with a regular game will work here:

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

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

However, each team does not seem to respond to running mp3.

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

? , /?

+1
1

wait/stop, , *.mp3.

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

Source: https://habr.com/ru/post/1624174/


All Articles