Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Playing Sound Or adding Sound to OpenGl file

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2014
    Posts
    3

    Playing Sound Or adding Sound to OpenGl file

    hie every 1 ... I am new to OpenGL ... m a beginner ... I wanted to add a background sound to my code .... Can Any1 tell me .. what function i should be using to achieve it and weathr i need to include some headerfile wen i use tat function.. Please reply Soon .. i hav to submit my project by monday ... Thank you

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2013
    Posts
    108
    The Open Graphics Library does not have any capabilities for sounds.
    You should be looking for a different library for that.

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2014
    Posts
    3
    is it not possible to play short sound file .. ?? .. actually my project is on Musical Keyboard tutorial .. ryt aftr the key gets Clicked i want some music file to be played .. that too for a shortwhile .. .. aftr much of googling i found that there is a Playsound function .. but i hav no idea how it works .. can u help on this ?

  4. #4
    Senior Member OpenGL Pro Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    1,193
    There is a plenty of ways to play the sound, but OpenGL has noting with that. This is a wrong place to ask for the help for your task.

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2014
    Posts
    3
    so which is the ryt place to ask my doubt

  6. #6
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,452
    Quote Originally Posted by GangaPatil View Post
    so which is the ryt place to ask my doubt
    You might try on Gamedev in "The Technical Side : General Programming" or "The Technical Side : Game Programming".

    For instance, here are a few hits from there:

    * A good sound library with C?
    * [C++] Sound library selection
    * Sound Library with OpenGL?
    * Absolutely FREE Sound Library

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •