Thread: sound

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    196

    sound

    im not sure if this totally goes here but i read somewhere that the old nes game(which i still play on a emu constantly) had the programmers making the music you know the beeps and bloops but how do i do that?i really want to know

    also will openal work with c++ and open gl i just heard about it..

    and one more thing can i make a game with opengl al and c++ on its own or is opengl just putting the graphics on not letting it do anything like move or anything
    Last edited by lilhawk2892; 08-09-2006 at 08:52 AM.

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    OpenGL just does graphics but since transformations are part of that then I guess you could say "movement" is there.

    OpenGL + OpenAL + C++ should be enough to make a game unless you want anything optional like compression (archive reading / writing?).
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    SDL also does sound; I'm not sure if it is a layer over top of OpenAL... it probably is. You might want this to make it easier.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    yea but an entire library devoted to sound vs an add on open al might be better

    seeing this made me like it better..
    http://www.openal.org/titles.html
    Last edited by lilhawk2892; 08-09-2006 at 08:25 PM.

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    I do not recommend using a third party library at this stage in your programming. Companies use libraries to cut down on dev-time and thus cost. However, this does not mean they do not know how to write their own sound engine. Granted, some might not, but most do.

    You need to learn about sound first and code something to play back waves, etc, etc. Then after you understand it you can use the 3rd party library to do all the tasks you simply don't want to code for, or don't have time to code for.

    If you don't have any cross-platform requirements, you can fire off DirectSound and DirectMusic w/o having to use Direct3D. Most people confuse Direct3D with DirectX. DirectX is the whole enchilada and Direct3D is just one of the toppings. DirectSound, Show, Input, etc, etc, can all work in parallel with OpenGL.

  6. #6
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    making my own engines i simply fo not know how to do this,same for images joe the programmer gave me a link to a site for the image engine things but i dont know wut im suppose to do with that..

  7. #7
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    Beep(), BeepEx(), and some very simple threading could do the trick.

  8. #8
    Registered User
    Join Date
    Sep 2005
    Posts
    196
    errr thanks,,if you were serious

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sound lags in multi-thread version
    By VirtualAce in forum Game Programming
    Replies: 23
    Last Post: 08-27-2008, 11:54 AM
  2. Low latency sound effects
    By VirtualAce in forum Game Programming
    Replies: 0
    Last Post: 12-21-2004, 01:58 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Help me modify my Sound Server
    By zdude in forum C Programming
    Replies: 1
    Last Post: 05-14-2003, 05:15 PM
  5. sounds?
    By BODYBUILDNERD in forum C++ Programming
    Replies: 6
    Last Post: 12-06-2002, 03:34 PM