Sign in to follow this  
djnevs

Background Music

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
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
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
Quote:
Original post by Evil Steve
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.


Sorry for the thread hijack, but we had a discussion on this a while back and reached a bit of a different conclusion. Assuming you're using an API like AudioVideoPlayback (i.e. DirectShow), you're effectively working with the codecs that are already installed on your Windows machine. Since these codecs have already been legally licensed and since they are used transparently by the underlying API, it's strange we would be legally required to still take out a license on it.

Going from that MP3 licensing FAQ, one could argue we're the endusers of the DirectShow API and hence are not required to license it seperately. It's probably not a safe bet in any legal situation though, seeing as the FAQ indicates you need a license to even distribute your own encoded content. However:

Quote:
no license is needed for ... entities with associated annual gross revenue less than US$ 100 000.00.


So for your hobbyist/marginal commercial game, you should be in the clear.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this