• Advertisement

Archived

This topic is now archived and is closed to further replies.

OpenGL+DirectSound

This topic is 6493 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi to everyone I hope this is the right place to post my question (and I hope it is not a faq...). I''ve heard around (web) that it is possible, in Win32, to use OpenGL for 3D graphics and DirectSound for sound in a program .. thanks to NEHE tutorials I''ve now no problems with OpenGL, but I have no experience in DirectX or DirectSound .. I would like to know if someone can point me some good tutorial or starting point for this topic .. I need only to play a simple WAV file in my little game when the user press a key .. a more advanced question is how to play a midi file in the background, but for now it would be great to solve the wav problem .. thank you in advance for any help. Greetings from Italy, Riccardo P.S. Excuse me for my poor English

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
you really don''t need to use direct sound to do this, but if you''re looking for experience with it download the sdk (err order it now a days) from microsoft.

your other route is to use the windows api to play wav files. lots of examples around the net (code guru is the place to go for things like this IMHO).

Share this post


Link to post
Share on other sites
Well... you can download the SDK if you have a FAST connection. considering it''s 128 megs =)

http://www.microsoft.com/downloads/release.asp?ReleaseID=16927


theres the site for it.

Axehandler

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Ciao Riccardo,
DirectSound ti permette molte più cose di una semplice esecuzione di file *wav, mixing,pan,cambio di frequenza ecc.
L''API è semplice, puoi richiedere il CD di DirectX direttamente alla Microsoft, è gratuito e ti arriva in pochi giorni.
Se invece hai esigenze più semplici usa la funzione
PlaySound(..)con una riga di codice ottieni il tuo suono !!
se vuoi scrivimi info@aracnet.it

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
?

Share this post


Link to post
Share on other sites
HE SAID Direct Translation =)

------

Hello Riccardo,

DirectSound allows many more things you than one simple execution of rows * wav, mixing, pan, change of frequency etc. The BEES are simple, can directly demand the CD of DirectX to the Microsoft, are free and it arrives to you in little days. If instead you have simpler requirements a code line uses the PlaySound(..)con function obtains your sound!! if you want scrivimi info@aracnet.it

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Ricardo,

I''ve done such a combination in my mini flight simulator project - sonata. It''s OpenGL running in DirectSound & DirectMusic.

http://lightning.prohosting.com/~sinfonia

the source will be out in may.

you may contact me at kien@post.com

kien

Share this post


Link to post
Share on other sites
Hi
I wish to thank every one has replied to my question .. I''m tring my way out with directsound and opengl .. thanks to all of you

Riccardo

Share this post


Link to post
Share on other sites
Well, for one, DirectSound allows you to have hardware mixing. Using the Win32 API for playing sound is slower, as some say.. I am developing a DirectSound and DirectSound3D DLL right now. The best way to learn it is to read the MSDN library and look at the source code.

Share this post


Link to post
Share on other sites
Let us not forget about OpenML (Open Media Library?). Like DirectX but from SGI, hitachi, blah blah blah.

MENTAL

Share this post


Link to post
Share on other sites

  • Advertisement