Skip to content

JerryPW/ways_to_add_music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Ways to add music in c++ codes

I will list the codes you need in here: 3 files to include #include<windows.h>` #include<Mmsystem.h> #pragma comment(lib,"winmm.lib")

open the file: mciSendString("open gameMusic.mp3 alias music",NULL,0,NULL);

play and turn off the music: mciSendString("play music repeat",NULL,0,NULL); mciSendString("close music",NULL,0,NULL);

About

Ways to add music in c++ codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published