Game programming

Moderators: None (Apply to moderate this forum)
Number of threads: 2070
Number of posts: 5361

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Sound Programming in Game Posted by 9725644 on 19 Jun 2001 at 4:01 PM
Hi.
I have developed a doom style 3d engine in Borland C++, and have the graphics part almost complete. I now want to add atmosphere to the game and the best way to do this is by adding sounds. I have followed many tutorials on the web and downloaded lots of examples including the ones from this site, but all the sound programms that I have written and seen don't do. They cause the game to freeze until the sound is played, the the motion continues. This is fine for tiny sounds but looks real odd when opening a door.
I was wondering if anyone had written a game and had successfully implemented sound in C++, and was willing to give me a hand.

Thanks
Ciaran

Report
Re: Sound Programming in Game Posted by gautam on 19 Jun 2001 at 6:45 PM
Hi,

I suggest you use DirectSound for sound.(DirectX).

: Hi.
: I have developed a doom style 3d engine in Borland C++, and have the graphics part almost complete. I now want to add atmosphere to the game and the best way to do this is by adding sounds. I have followed many tutorials on the web and downloaded lots of examples including the ones from this site, but all the sound programms that I have written and seen don't do. They cause the game to freeze until the sound is played, the the motion continues. This is fine for tiny sounds but looks real odd when opening a door.
: I was wondering if anyone had written a game and had successfully implemented sound in C++, and was willing to give me a hand.
:
: Thanks
: Ciaran
:


Report
Re: Sound Programming in Game Posted by 9725644 on 20 Jun 2001 at 12:40 PM
The programming I have done is all in Dos, and I don't think DirectX will work with this. Am I right?

: Hi,
:
: I suggest you use DirectSound for sound.(DirectX).
:
: : Hi.
: : I have developed a doom style 3d engine in Borland C++, and have the graphics part almost complete. I now want to add atmosphere to the game and the best way to do this is by adding sounds. I have followed many tutorials on the web and downloaded lots of examples including the ones from this site, but all the sound programms that I have written and seen don't do. They cause the game to freeze until the sound is played, the the motion continues. This is fine for tiny sounds but looks real odd when opening a door.
: : I was wondering if anyone had written a game and had successfully implemented sound in C++, and was willing to give me a hand.
: :
: : Thanks
: : Ciaran
: :
:
:


Report
Re: Sound Programming in Game Posted by gautam on 20 Jun 2001 at 1:36 PM
No it won't, then you will have to go low level(assmebly), you can't write an interface for all sound cards - one or two will do, or you could use the bell.


: The programming I have done is all in Dos, and I don't think DirectX will work with this. Am I right?
:
: : Hi,
: :
: : I suggest you use DirectSound for sound.(DirectX).
: :
: : : Hi.
: : : I have developed a doom style 3d engine in Borland C++, and have the graphics part almost complete. I now want to add atmosphere to the game and the best way to do this is by adding sounds. I have followed many tutorials on the web and downloaded lots of examples including the ones from this site, but all the sound programms that I have written and seen don't do. They cause the game to freeze until the sound is played, the the motion continues. This is fine for tiny sounds but looks real odd when opening a door.
: : : I was wondering if anyone had written a game and had successfully implemented sound in C++, and was willing to give me a hand.
: : :
: : : Thanks
: : : Ciaran
: : :
: :
: :
:
:


Report
Re: Sound Programming in Game Posted by Amante on 21 Jun 2001 at 12:50 AM
I never done it.
I don't know exactly how to do it, but i think you should progarm the DMA of the SoundBalster.

: No it won't, then you will have to go low level(assmebly), you can't write an interface for all sound cards - one or two will do, or you could use the bell.
:
:
: : The programming I have done is all in Dos, and I don't think DirectX will work with this. Am I right?
: :
: : : Hi,
: : :
: : : I suggest you use DirectSound for sound.(DirectX).
: : :
: : : : Hi.
: : : : I have developed a doom style 3d engine in Borland C++, and have the graphics part almost complete. I now want to add atmosphere to the game and the best way to do this is by adding sounds. I have followed many tutorials on the web and downloaded lots of examples including the ones from this site, but all the sound programms that I have written and seen don't do. They cause the game to freeze until the sound is played, the the motion continues. This is fine for tiny sounds but looks real odd when opening a door.
: : : : I was wondering if anyone had written a game and had successfully implemented sound in C++, and was willing to give me a hand.
: : : :
: : : : Thanks
: : : : Ciaran
: : : :
: : :
: : :
: :
: :
:
:


Report
Re: Sound Programming in Game Posted by RagnaroK on 21 Jun 2001 at 6:02 AM
Try the page from Steven Don.

You should find some DMA routs there in the sound section

http://www.shdon.com

Report
Re: Sound Programming in Game Posted by 9725644 on 21 Jun 2001 at 3:44 PM
: Try the page from Steven Don.
:
: You should find some DMA routs there in the sound section
:
: http://www.shdon.com
:


Thank you all for your help. Much appreciated.
Ciaran.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.