I got my sound to play with this code:
But if I then wanted it for example to play in the background when the user were interracting with the program, that line doesn't allow me to do so. It seems it needs to finish the song, and then it will move to the next line but that is not what I hoped for.Code:#include <windows.h> #include <mmsystem.h> int main() { PlaySound(TEXT("song.wav"), NULL, SND_ALIAS | SND_APPLICATION); }
What I hoped for is that it reads that line and plays the song, and while it does so, it moves on, so the user can interract with the program while the song is playing.
Is this possible?