Playing sounds with C++?

前端 未结 5 990
刺人心
刺人心 2021-02-06 16:10

How would i make it so in my program there is a button when that button is clicked i want it to play a .wma file without opening and media player?

5条回答
  •  深忆病人
    2021-02-06 17:01

    KDE's Phonon is a cross-platform(!) C++ multimedia library. It supports native sound systems as backends. Worth a look if you haven't seen it before, and a simple video player can be written in a mere 83 lines of code.

提交回复
热议问题