[AGDev-newbies] Playing Sound Files With DirectX9 and C++
Thomas Ward
tward1978 at earthlink.net
Mon Jun 5 14:19:45 BST 2006
Hi, Sean.
Unfortunately, time is short, and that is not a trivial task at the
moment, but I can get you started on the right road. If I get a chance I
will attempt to toss a simple tutorial together this week for you, but
no promises.
Esentually, what you need to do is include dsound.lib to your solution
project file, and include the dsound.h to the top of the *.cpp file
where you have your DirectSound code.
You'll need to write initialization function to initialize sound
playback on your sound card as well as a function to begin playing a wav
file.
Like I said I will see what I can scrape together for you.
I have created the places on the wiki for this stuff, but haven't had a
chance to make the tutorials yet.
Sean Mealin wrote:
>
> Hi everyone,
>
> I think I have gone stupid! I thought I knew how to play a wav sound
> with DirectX and C++, but I was wrong.
>
> Tom, were you writing a tutorial for playing sound files with DirectX
> and C++? If not, would you mind? Or, I am sure that other people know
> how to, so would you mind telling me how to do it?
>
> I looked on the AGDev Accessible Game Developer's community site, but
> I got a page not created message.
>
> I am looking for DirectSound as DirectX calls it.
>
> Just something like a program that will play a sound from the second
> you click on the .EXE until you close it. From making a secondary
> buffer to loading a wav sound…. If you are really bored, you can also
> show how to stream a sound file! (Grin).
>
> Thanks to anyone who can help, and sorry for always asking the
> beginner questions!
>
> Sean, the very slowly learning programmer.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> AGDev-newbies mailing list
> AGDev-newbies at lists.agdev.org
> http://lists.agdev.org/cgi-bin/mailman/listinfo/agdev-newbies
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006
>
More information about the AGDev-newbies
mailing list