How to play MP3 files in C?

前端 未结 10 1543
遇见更好的自我
遇见更好的自我 2020-12-01 01:15

I\'m looking for the easiest way to play a MP3 file in C. I am looking for either a library, in which I could just call the function on the filename, or an executable that w

10条回答
  •  眼角桃花
    2020-12-01 01:30

    Basically you can use the windows.h header file

    #include 
    void main()
    {
        //replace music with your filename
        system("start music.mp3");
    }
    

提交回复
热议问题