Jump to content

  • Log In with Google      Sign In   
  • Create Account


OpenGL+DirectSound


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 Riccardo   Members   -  Reputation: 122

Like
Likes
Like

Posted 10 April 2000 - 04:33 AM

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

Sponsor:

#2 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 10 April 2000 - 08:07 AM

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).



#3 Axehandler   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 April 2000 - 02:33 PM

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

#4 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 11 April 2000 - 09:21 PM

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

#5 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 11 April 2000 - 09:57 PM

?

#6 Axehandler   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 April 2000 - 04:57 AM

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

#7 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 12 April 2000 - 05:18 AM

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



#8 Riccardo   Members   -  Reputation: 122

Like
Likes
Like

Posted 13 April 2000 - 12:33 AM

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


#9 max621   Members   -  Reputation: 122

Like
Likes
Like

Posted 14 April 2000 - 02:20 PM

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.

#10 MENTAL   Members   -  Reputation: 382

Like
Likes
Like

Posted 15 April 2000 - 09:29 AM

Let us not forget about OpenML (Open Media Library?). Like DirectX but from SGI, hitachi, blah blah blah.

MENTAL




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS