How to play MP3 files in C?

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

    mpg123 has a generic remote interface that you access by starting the executable with the -R option. You can then send commands (such as load, pause etc) over a fifo pipe or to stdin of the subprocess. If nothing else it's easy to debug and test manually.

提交回复
热议问题