Results 1 to 6 of 6

Thread: Insert audio on OpenGL

  1. #1
    Join Date
    May 2011
    Posts
    129

    Insert audio on OpenGL

    I am learning about programming OpenGL and I right now as an example I am working on NVidia OpenGL SDK. Right now I have some clear examples here which I am practicing. But how to add sound to them. Is DirectSound will still be connected to the project or there is an kind of any other process. Something I do not found in the tutorial which I am using while working on OpenGL. I need help with the same. Could you make a sound in OpenGL game without it, but certainly at the professional level.

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: Insert audio on OpenGL

    In OpenGL and without DirectX there is some stuff you need to work. In DirectX and generally you can work with anything and the sound can be done probably. The sound can be attached using using DirectSound and even OpenAL and also by using third-party libraries. But under Windows, these libraries will still output sound through DSound. So for that I will recommend fmod. You have to search more on this and then work with the same.

  3. #3
    Join Date
    Apr 2009
    Posts
    488

    Re: Insert audio on OpenGL

    Windows works with the winapi function and if nothing is changes in your system then it can PlaySound. It can reproduce the sound as a file but for the the game of course it is not suitable. It can play the contents of the buffer which you need now. From my point of view FMOD is very good but it is recommended for commercial use. And there this is same with OpenAL, but there is a little more working on that. The best reason to use this is because it is free.

  4. #4
    Join Date
    May 2009
    Posts
    539

    Re: Insert audio on OpenGL

    If you want to work with 3D sound then your job here becomes more complicated. Sound without the DX SDK - is correct. If you are using DirectSound then I found that is most horrible sound API. OpenGL is a graphics library. For that I will recommend you to move more further. OpenAL or PlaySound are the libraries that you can connect and configure sound with that. It is here also possible to use cross-platform OpenAL library and serves on the OpenAL SDK library. This has been used on several games such as Unreal II.

  5. #5
    Join Date
    Mar 2010
    Posts
    154

    Re: Insert audio on OpenGL

    I will recommend OpenGL because it is very similar to OpenAL.FMOD is cross-platform but it can cause extra charge. While bass and DirectSound only work with Windows. In most case I had understand that OpenAL is not quite cross-platform. There is o official supported UNIX and Linux systems and for the hardware support you can also use those which are from Creative. So if there is an different hardware then also the same issue arises.

  6. #6
    Join Date
    Apr 2009
    Posts
    569

    Re: Insert audio on OpenGL

    OpenGL is a graphics library, and can therefore only graphics. WaveOut is the most basic Windows, but hardly anything. Better alternative would be OpenAL or other SoundLib as FMOD or BASS. You have to go and search for more alternative solution that can work with all type of operating system. At start you can just plan here to test some sounds here and work on the same. There are other third party library also.

Similar Threads

  1. Which is the better Direct X or OpenGL
    By Daamodar in forum Monitor & Video Cards
    Replies: 3
    Last Post: 30-11-2010, 09:37 PM
  2. Ati Catalyst OpenGL 4.0
    By ANSEL in forum Monitor & Video Cards
    Replies: 4
    Last Post: 31-05-2010, 05:36 PM
  3. Windows 7 with opengl? (CS 1.6)
    By Muses in forum Video Games
    Replies: 6
    Last Post: 13-05-2010, 09:30 AM
  4. opengl project
    By nnpai53 in forum Software Development
    Replies: 3
    Last Post: 10-04-2009, 11:21 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,864,164.15212 seconds with 17 queries