Thread: Audio

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    62

    Audio

    Hello!
    Currently I'm planning to start programming the audio part of my game.

    I'm a little bit confused. I googled and found out that DirectSound is practically gone for Vista. That means there's no point to use it. So what should I use? When googling it seems that everything is quite oriented to DirectSound and nobody mentions alternatives.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    OpenAL
    Ogg Vorbis

    Or if you are rolling around in cash:
    Miles Sound System.

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    I also found some info about XACT and it's a part of DirectX. Maybe you could say some advantages/disadvantages.

  4. #4
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    FMod is pretty nice aswell, if you're not planning on doing anything commercial.
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    XACT seems to be primarily for C# XNA. I cannot find any good information on using XACT in C++ although I do think it is possible. However I will not use it regardless if it is possible or not. Microsoft killed DirectMusic and removed audio acceleration from Vista without so much as a hint of their plans. I'm not going to write code again that uses one of their sound systems just so they can yank the rug out from under it.

  6. #6
    Registered User
    Join Date
    Jan 2008
    Posts
    70
    I've heard very good things about FMod as well, although I haven't used it.

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    I started with OpenAL, but I have already run into a problem.

    The problem is about loading WAV files. All the tutorials I have read tell me to use a function called alutLoadWAVFile, but it seems to be some old function, as it's not included in SDK anymore. The samples that are included with SDK load the file manually instead. Is there some other, newer function to use or do I really have to load WAV-files manually?

  8. #8
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    That is available in freealut which is a thirdy party library for OpenAL and is also open-source.

  9. #9
    Registered User
    Join Date
    Aug 2006
    Posts
    62
    OK, it works now.

    I unfortunately don't know the meanings of some things. Maybe someone could tell me what are:

    1) AL_VELOCITY
    2) AL_ORIENTATION
    3) AL_PITCH
    4) AL_GAIN

  10. #10
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    They should be defined in the documentation that comes with OpenAL. I believe pitch is the pitch of the sound and gain is the volume of it. Velocity and orientation are more than likely something to do with 3D positioning of sounds.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Audio Programming
    By dwalters in forum Tech Board
    Replies: 0
    Last Post: 02-07-2008, 04:20 PM
  2. Audio Drivers
    By Tonto in forum Tech Board
    Replies: 8
    Last Post: 08-30-2006, 09:07 PM
  3. audio programming (from scratch)
    By simpleid in forum C Programming
    Replies: 6
    Last Post: 07-26-2006, 09:32 AM
  4. Bluetooth Audio Stream
    By Charmy in forum Windows Programming
    Replies: 2
    Last Post: 05-06-2006, 12:10 AM
  5. Port Audio
    By samGwilliam in forum Windows Programming
    Replies: 9
    Last Post: 12-07-2005, 11:43 AM