How to play MP3 files in C?

前端 未结 10 1551
遇见更好的自我
遇见更好的自我 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:32

    The BASS DLL is really easy to use and will probably do what you need. It is only free for non-commercial use though.

    If you need more control, you will need a codec (I prefer libMad) and some sound output API like DirectSound on Windows or ALSA or Linux (or whatever Linux guys use for sound this week)

提交回复
热议问题