small programming job VC++ Wavs in DirectX8

This is a discussion on small programming job VC++ Wavs in DirectX8 within the Projects and Job Recruitment forums, part of the Community Boards category; Hello, Here I offer a little programming job, with payment of course. For my framework based on MS Visual C++ ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    5

    Smile small programming job VC++ Wavs in DirectX8

    Hello,

    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?

    Christian, interphase@gmx.net

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    OK, I'm done!
    Code:
    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
    Posts
    9,597
    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:

    IDirectMusicPerformance8::GetDefaultAudioPath()

    Then use this to get the direct sound buffer interface.

    IDirectMusicAudioPath8::GetObjectInPath()

    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, 02:03 AM
  3. a VB.NET job
    By Brain Cell in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 05-09-2005, 07:41 PM
  4. I can't find a job.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 42
    Last Post: 06-29-2003, 09:35 PM

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