用C ++或OpenGL声音 [英] Sound in C++ or OpenGL
问题描述
大家好
我很抱歉这个问题,但我需要你的帮助!!!
我也有在OpenGL中子窗口的问题,你解决了我的问题,谢谢你CODEPROJECT :)
我必须在我的OpenGL项目中添加声音可以帮助我解决这个问题! />
即使在C ++中我也无法在OpenGL中添加声音!
我在c ++中使用PlaySound()方法看过例子,但我不能让它工作!!
你能给出任何可以提供帮助的链接吗?
我知道这不是一个好问题:(
谢谢
OpenGL仅用于渲染图形。
如果您正在开发跨平台应用程序,请查看OpenAL。如果您正在开发仅限Windows的应用程序,还可以使用DirectSound(DirectX API的一部分)。
Hi to all
Fist of all i am sorry about this question but i need your help!!!
I had also problem with subwindows in OpenGL and you solved my problem, THANK YOU CODEPROJECT :)
I have to add sound in my OpenGL project could some help me with this!
I cant add sound in OpenGL even in C++!
I have seen examples by using PlaySound() method in c++ but i couldn''t make it work!!
Could you give any link that can help or something else!!!
I know that is not a good question :(
Thank you
OpenGL is meant for rendering graphics only.
Have a look at OpenAL if you are developing a cross-platform application. You can also use DirectSound (part of DirectX API) if you are developing a Windows only application.
这篇关于用C ++或OpenGL声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!