需要示例代码才能在LINUX中播放wav文件 [英] need a sample code to play wav file in LINUX
本文介绍了需要示例代码才能在LINUX中播放wav文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
< 你好,
我有一个在Windows上运行的代码,该代码使用 playsound()函数播放声音,该函数需要windows.h,mmsystem.h和winmm.lib.
我需要在具有kdevelop IDE的redhat linux中运行相同的代码.
我需要与playsound()等价的功能
我需要等效的库和头文件.
如果我要获取任何示例代码来实现此目标,将很有帮助.
请帮助我
<Hello there,
I have a code runs on windows,which plays sound using playsound() function which needs windows.h,mmsystem.h and winmm.lib.
I need to run the same code in redhat linux which has kdevelop IDE.
i need equivalent function to playsound()
i need equivalent libraries and header files.
it would be helpful,if i''m getting any sample code to achieve this..
please help me
推荐答案
如果您的问题以我需要"开头(您的三个都需要),那么您应该尝试 ^ ] f麻烦.
If your question begins with "I need" (and three of yours do), then you should try this[^] first.
在KDE4中,您可以使用Phonon API.请参见示例代码 [ API文档 [^ ].
In KDE4 you can use the Phonon API. See the example code[^] and the API documentation[^].
这篇关于需要示例代码才能在LINUX中播放wav文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文