Thread: small programming job VC++ Wavs in DirectX8

  1. #1
    Registered User
    Join Date
    Dec 2005

    Smile small programming job VC++ Wavs in DirectX8


    Here I offer a little programming job, with payment of course.

    For my framework based on MS Visual C++ 6 and DirectX8, I need a function that loads and plays WAV-files. Easy cakes :-)

    If you are interested, you will get a complete description of the task.

    Who has time and likes to do it?


  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Göteborg, Sweden
    OK, I'm done!
    void playSoundFromFile(const char* fileName)
      PlaySound(fileName, 0, SND_FILENAME | SND_ASYNC);
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Ok.....where's my money?

    The IDirectMusicLoader9 supports WAV files. This sample uses DirectMusic to play WAVs. If you need to get DirectSound interfaces, get the audio path using:


    Then use this to get the direct sound buffer interface.


    Once you have this you can now add effects to the buffer or do anything you can do with normal DirectSound buffers.

    You may also want to add an audio path class to support multiple audio paths and 3D audio paths.
    Last edited by VirtualAce; 02-16-2006 at 12:03 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. small programming job VCPP / Object Oriented Programming
    By calgonite in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 01-04-2006, 11:48 PM
  2. Need help quick, compiler/file problem.
    By alex0486 in forum C++ Programming
    Replies: 7
    Last Post: 09-28-2005, 01:03 AM
  3. a VB.NET job
    By Brain Cell in forum A Brief History of
    Replies: 20
    Last Post: 05-09-2005, 06:41 PM
  4. I can't find a job.
    By Cheeze-It in forum A Brief History of
    Replies: 42
    Last Post: 06-29-2003, 08:35 PM