如何在c ++中播放mp3文件? [英] How to play mp3 file in c++?
本文介绍了如何在c ++中播放mp3文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在寻找在C ++中播放MP3文件的最简单方法。
I'm looking for the easiest way to play an MP3 file in C++. Either a library I could use and just call the function, given the filename, or alternatively something someone has already written that will just run and quit.
推荐答案
你是什么平台?您可以检查这些:
What platform are you on? You can check these out:
如果是windows / linux:
FMOD
In case of windows/linux:
FMOD
如果你只是在windows / mac osx上编程:
BASS
In case you are programming only on windows/mac osx:
BASS
我也会寻找一些原生的API(如果您在该平台上开发)。
HTH,
Sriram
I would also look for some native APIs in Windows (if you are developing on that platform).
HTH,
Sriram
这篇关于如何在c ++中播放mp3文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文