Jump to content
  • Advertisement
Sign in to follow this  
djnevs

Background Music

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

What is the best/fastest way of loading and playing(repeating) a background music in Directx ? I have tryed directsound; Has limitation for filetypes.. (only wav? no mp3) AudioVideoPlayback (mp3, no repeat?) DirectShow (havn't found out how to get this working/ Help?) Or any other suggestions with little example?

Share this post


Link to post
Share on other sites
Advertisement
I'm pretty sure you need a licence to play mp3 files. But on-topic I think the fastest would be just to load it straight through directSound. As all you need is basic background music. No listeners or anything.

Share this post


Link to post
Share on other sites
@theMadHatter: directsound cant play mp3..

@theMadHatter: Well, my game would be free2play, but mayb later something like fasion item you need to pay for (mmorpg)
I'll give it a try :)

Share this post


Link to post
Share on other sites
Yes my point was that it can't play mp3 files because you need a licence (http://mp3licensing.com/help/).

Looking through FMOD ex and it does support mp3.

Share this post


Link to post
Share on other sites
FMOD is indeed wonderful. Oh, and on the mp3thing...you only needa pay (a LOT) if you're gonna do more than 5000 copies.

-Stenny

Share this post


Link to post
Share on other sites
Question here:
Do i need a 'licence' to use my OWN music in MP3 format in my games? O.o;;

If so, I'd rather switch to ogg.. ><

Share this post


Link to post
Share on other sites
Quote:
Original post by djnevs
Question here:
Do i need a 'licence' to use my OWN music in MP3 format in my games? O.o;;

If so, I'd rather switch to ogg.. ><
Yes. The MP3 codec is what you need to pay to use.

Ogg vorbis is easy to use anyway, the API is pretty simple and works nicely with DirectSound.

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!