Loading .wav sounds

This is a discussion on Loading .wav sounds within the C++ Programming forums, part of the General Programming Boards category; im making a game, on which i want to implement .wav sounds. but i have no idea on how to ...

  1. #1
    Registered User UltraKing227's Avatar
    Join Date
    Jan 2010
    Location
    USA, New york
    Posts
    123

    Question Loading .wav sounds

    im making a game, on which i want to implement .wav
    sounds. but i have no idea on how to load wav files and
    play them, can somebody give me an example or explain
    me how to play wav sounds via C++?

  2. #2
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    You can use BASS sound library if you wish.
    Just GET it OFF out my mind!!

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    10
    I'm not sure about the licensing on BASS, although it may not matter for you project. It's rather popular though and as it's atleast somewhat commercial, I would expect the support to be pretty decent.

    I would use SFML though, which uses OpenAL. SDL would be the other obvious choice for me, I'm not sure what it uses though.

  4. #4
    Registered User UltraKing227's Avatar
    Join Date
    Jan 2010
    Location
    USA, New york
    Posts
    123
    Thanks Walker! my game can now play .wav sounds!

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,598
    OpenAL is easy enough to use on its own so I would use it. You will also want to get freealut since this can load WAV files. It is outside of the scope of OpenAL to load various file formats so you will have to either create loaders or download third party ones in order to load sounds/music.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cargo loading system
    By kyle rull in forum C Programming
    Replies: 1
    Last Post: 04-20-2009, 01:16 PM
  2. Replies: 6
    Last Post: 03-23-2009, 12:30 AM
  3. .WAV Sounds
    By C-Compiler in forum Windows Programming
    Replies: 1
    Last Post: 02-04-2009, 11:58 PM
  4. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  5. Loading Screen
    By pinkcheese in forum Windows Programming
    Replies: 2
    Last Post: 04-06-2002, 11:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21