Archived

This topic is now archived and is closed to further replies.

Ilankt

what is the best way to play MP3 files?

Recommended Posts

DirectShow is the way to do it.
It is really quite simple, if you have problems with it, I'll help you out.

[edited by - adiash on July 5, 2003 3:26:40 PM]

Share this post


Link to post
Share on other sites
if ya dont want to mess with direct show u can allways convert the mp3 into a mp3 encoded wav file and use direct music to play it

Share this post


Link to post
Share on other sites
Winamp

Personally if you can, i''d encourage the switch the OGG Vorbis.
If you can''t, then look into Direct Show as mentioned above.

Cheers,
- Jacob

Share this post


Link to post
Share on other sites
Other than the DirectX options, I''ve found fmod a very easy to use and effective sound library. It easily handles mp3, ogg, and most others. Definitely worth looking into if you want an alternative to the DirectX options.

Share this post


Link to post
Share on other sites
Thanks, but i will use DirectShow...
BTW, what is ogg format?

[edited by - ilankt on July 6, 2003 4:46:56 AM]

Share this post


Link to post
Share on other sites
use FMOD, the best! Easy to learn the library too! Best if your concerned about performance & cpu utilization.
www.fmod.org

Share this post


Link to post
Share on other sites
Just FYI: I was able to convert my crappy 128 kbps MP3s into 80 kbps Oggs without being able to hear a difference (I.E. they sounded just as crappy as the MP3s but not worse)

The stuff I rip from my CDs into Oggs I use at 96k Oggs. Maybe my ears suck or something, but they sound pretty much the same quality as the original (maybe a slight loss of bass?).

So the bottom line is that Oggs will sound the same as MP3s, but can be stored on disk at about 2/3 the size.

Oh yeah, and you don't have to worry about the mp3 creators breathing down your next for "royalties". Rage.

[edited by - Nypyren on July 7, 2003 11:05:20 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by Carandiru
use FMOD, the best! Easy to learn the library too! Best if your concerned about performance & cpu utilization.
www.fmod.org


I concurr. Nothing could be easier. Plus you could port your programs to XBox, PS2, or Pocket PC :-D

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Re: fmod... LOL!

$1000 + $2500 for the mp3 license. NO F*CKING THANKS! DirectShow is free.

Share this post


Link to post
Share on other sites
Nypyren, did you also have a chance to monitor CPU usage when playing the mp3 and the ogg file ?
Although ogg files are smaller and offers better quality than mp3, it also hits the cpu pretty hard. This makes it less suitable for use in games.

Share this post


Link to post
Share on other sites
Unfortunately distributing mp3 files on any media except sattelite communication requires a license from http://www.mp3licensing.com/royalty/software.html
It doesn''t matter if you use Directshow since you still need a license. Check the license regulations on the above mentioned site. I have moved to ogg and won''t be looking back. Much better format and easy to use. The CPU usage is negliable in the recent version.

Share this post


Link to post
Share on other sites
That only mentions internet radio, live streaming, pay on demand audio or webcasts. I don''t think it applies to distributing mp3''s with your game. Also if you play using directshow, you''re using a decoder that''s already licensed, the windows license includes the fraunhofer directshow decoder.

Share this post


Link to post
Share on other sites
quote:
Original post by Fidelio66
That only mentions internet radio, live streaming, pay on demand audio or webcasts. I don''t think it applies to distributing mp3''s with your game. Also if you play using directshow, you''re using a decoder that''s already licensed, the windows license includes the fraunhofer directshow decoder.


No it doesn''t. MS has a license but not for 3rd party usage. Nor does Thomson offer one. If you look through the fees you will find a 2500$ for mp3 per game title. Also if you want mp3pro it is 3500$ if memory serves me. There is also a FAQ on the site explaining why you can''t use Directshow and get away with it. If your game sells below 5000 units there is no fee.

Share this post


Link to post
Share on other sites
I made THIS comment earlier, and after looking up the mp3licensing page, I still believe you do NOT need licensing. Remember, that you pay for the codex (licensing), but DirectShow uses the windows (already licensed) Codex.

"[games]...that may be published for multiple machines, platforms or media." -- This suggests that a game writtex exclusively for Windows is alerady mp3 licensed.

The beauty is that DirectShow ABSTRACTS out how codex works to the developer, so in fact you don''t know what underlying technology you are using when playing a file with a certain extension.

In fact each one of the DX DirectShow tutorials is a public executable.

If you are *Really* concerned, change the damn filename to .blah, and load these blah filenames instead

Share this post


Link to post
Share on other sites
quote:
Original post by superdeveloper
I made THIS comment earlier, and after looking up the mp3licensing page, I still believe you do NOT need licensing. Remember, that you pay for the codex (licensing), but DirectShow uses the windows (already licensed) Codex.

"[games]...that may be published for multiple machines, platforms or media." -- This suggests that a game writtex exclusively for Windows is alerady mp3 licensed.

The beauty is that DirectShow ABSTRACTS out how codex works to the developer, so in fact you don''t know what underlying technology you are using when playing a file with a certain extension.

In fact each one of the DX DirectShow tutorials is a public executable.

If you are *Really* concerned, change the damn filename to .blah, and load these blah filenames instead


Let me clarify one thing with this statement:

"[games]...that may be published for multiple machines, platforms or media."

This implies that a program designed to run on multiple platforms ACTUALLY CONTAINS the codex softrware ON-BOARD the sources, that is why it''s necessary to license.

While DX Direct Show uses the WMA technology implicitly through your Windows executable.

Share this post


Link to post
Share on other sites
quote:
Original post by superdeveloper
I converted a 128bit mp3 to 80bit mp3 and also noticed no difference.

I cannot believe this. You should consult a eye doctor
Everything lower than 128kbit MP3 is sounding like crap.
Ogg is much better in every respect than Mp3 + no lincense fees.

Share this post


Link to post
Share on other sites
quote:

Although ogg files are smaller and offers better quality than mp3, it also hits the cpu pretty hard. This makes it less suitable for use in games.



ehm... What about UT2K3 or Serious Sam? The both use ogg.

--::[Madhed]::--

Share this post


Link to post
Share on other sites
quote:
it also hits the cpu pretty hard.

It''s right, that it uses slightly more CPU time, but it''s certainly not a "pretty hard" hit.
Playing Ogg files in Winamp I cannot even notice a CPU time increase in the Task Manager.

Share this post


Link to post
Share on other sites