Jump to content
  • Advertisement
Sign in to follow this  
matrix2681

An Easy Question About Sound (Probably)

This topic is 4904 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

I can't find any resources that tell me how to program such that when one sound is playing, if another starts that it doesn't chop the first one off. All the search strings I've used have turned up zilch, and I'm just kinda curious how it can be done. If anyone has a link to a thread on here somewhere (I musta missed it), or just general advice, please let me know. Every time you help a n00b an angel gets its wings ;) Thanks for your help, matrix2681

Share this post


Link to post
Share on other sites
Advertisement
I'm using:

PlaySound("Data/laser-n2.wav", NULL, SND_ASYNC);

It's in VC++ 6.0 and I based it off the NeHe #21 tutorial since the main idea of pressing a key and playing a sound is in place.

Share this post


Link to post
Share on other sites
OK now I have another problem with fmod (probably not so much fmod as it is a user error ;) )

I'm trying to figure out how to:
stream music from my cd rom drive,
stream from an mp3 file

It's not doing either. It works fine with playing small sounds, by loading them into memory and playing them. I'm trying to play music from either of those two sources and either I can't read from the drive properly or it doesn't recognize the compression method on the mp3 file.

I tried using the help file to determine the correct way to use the function, and it compiles right. I also set it up to totally kill the program if the music doesn't load properly and pop an error window on the screen to tell me why it quit. Needless to say it quits everytime.

If anybody has any advice regarding this, that'd be great, but I'm thinking this could possibly be a hardware issue on my end. To rule this out, does anybody have a small code sample that opens/streams an mp3 file, and can also open/stream the first track of an audio cd? That way I could troubleshoot from there.

Thanks,

matrix2681

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!