PDA

View Full Version : Playing Music



Quantrizi
04-05-2002, 06:46 PM
I'm pretty sure this has been asked before....but here's my question. How do I play a *.wav file while the user is playing my game. I've gone to www.gametutorials.com and downloaded the right (Dev-C++ port) tutorials that where available, but none worked. And yes, I'm using Dev-C++, if anyone can help me, or anything, please.

Shiro
04-06-2002, 03:11 AM
Yes it has been asked many times before. But here's a link:

http://www.codeguru.com/multimedia/play_wav.shtml


Sorry, I see it's the DOS board. Here you can find a description of wave-files.

http://www.wotsit.org/

Quantrizi
04-06-2002, 10:49 AM
Thanks. That helped me alot. Now to get the file to play.

muttski
04-09-2002, 10:48 AM
I know Bubba did some stuff with the sound card, maybe pm him about it.

Quantrizi
04-09-2002, 01:09 PM
Who is Bubba??? Sorry, but these are my great newbie powers.......:D

Sunny
04-22-2002, 09:14 PM
Bubba definetely knows something about that. On the ohter hand, a little trick used by many game programmers is using audio cds mixed with data cds. If you have any mp3s of the music you want to play, you can burn them to a cd, but leave the first track as data ( Like maps, characters, images ). Like this, you don't have to worry about memory maanagement and all sorts of stuff. Anwy, it's only a suggestion.


Stef


Learn more about the XBlue shell and how you can make this world a better place:
http://www.angelfire.com/my/bahairomania/freegui.html
e-mail me about it.

Quantrizi
04-25-2002, 01:12 PM
That won't work because it ain't a MP3 and won't be a MP3 (a lot of space it takes up).....I tried the fmod deal with the mod/midi type but that won't work

Trai_K
04-26-2002, 09:08 PM
Qauz... I tried to download your new RPG but the link's broken it seems.

Quantrizi
04-26-2002, 09:23 PM
Geocities is being a idiot right now......have u tried downloading my new version from my site?

Trai_K
04-26-2002, 09:40 PM
I tried downloading both off the download page any neither link works. But I downloaded the one posted on the news page, and found two bugs within five minutes hehe. :cool:

Quantrizi
04-27-2002, 09:33 AM
If you d/l the 43 kb file, you should read the stuff.txt file

VirtualAce
05-11-2002, 07:47 PM
Who is Bubba? :confused:

:(

Go here and download the sound card programming doc from Creative Labs.

http://developer.creative.com/LEFTMENU/DC_LM_Downloads.asp

Click on the legacy development tools.



Go here to see some source code. Ethan Brodsky's source code did not work on my system w/o some alterations. If you follow the Creative doc it will work.

http://www.cae.wisc.edu/~brodskye//


Unfortunately my code has been deleted by some force of nature so I'm currently re-writing it in DJGPP. DA was the last one to have my code.

Incidentally I figured out how to get around the interrupt problem in real mode. Simply set a flag that tells the sound system, hey knucklehead it's time to load more data. Then outside of the interrupt handler, a function would check that flag and reload if necessary.