DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-23-2004, 04:57 AM   #1
pisces
New Member
 
Join Date: Mar 2004
Posts: 4
Default

Hiya all,
I need help once again :S

I read in the openAL guide and saw only wav files can be loaded... is there any way to load in mp3's as well...
I know FMOD does it... but havent really looked at it that much...

Thanks
pisces is offline   Reply With Quote
Old 03-23-2004, 10:14 AM   #2
anubis
DevMaster Staff
 
anubis's Avatar
 
Join Date: Apr 2003
Location: Germany
Posts: 2,328
Default

take my advice and use ogg. there even is a complete tutorial on how to do that.

http://www.devmaster.net/articles/openal-t...als/lesson8.php
___________________________________________
If Prolog is the answer, what is the question ?
anubis is offline   Reply With Quote
Old 03-23-2004, 10:28 AM   #3
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default

Mp3's are not supported directly by OpenAL, but they can be read in, as can all music files. You would have to know about the file format, compression methods, and then convert all this into a sound buffer format that OpenAL could use.

Why do you want to use mp3's? Theres a whole bunch of legal crap associated with mp3's, so if its for the file size aspect, then go with what anubis said and use ogg files. Ogg files are supported directly in OpenAL (currently in the Linux version, and soon to be in the win32 version. Dont know about the mac version etc.), and have just as good data compression and lossy-ness(!) as mp3's.

I can't think of why else someone would want to use mp3's, and yeah theres a raft of tutorials out there on ogg vorbis (2 on here, the ogg vorbis sdk docs). Google it...

Spree
SpreeTree is offline   Reply With Quote
Old 03-23-2004, 11:20 AM   #4
pisces
New Member
 
Join Date: Mar 2004
Posts: 4
Default

Hiya...
thanks. There's no reason about the mp3s... just curiosity. I'm having a look for the Ogg thingy. Thanks again

Pisces
pisces is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 10:50 PM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.