What wrong with standard FreePascal OpenAL example? It simple and can play mp3(using libmad), ogg, dts and other formats. But mp3 sucksOriginally Posted by code_glitch
What wrong with standard FreePascal OpenAL example? It simple and can play mp3(using libmad), ogg, dts and other formats. But mp3 sucksOriginally Posted by code_glitch
Last edited by Andru; 01-10-2010 at 08:30 PM.
For OpenAL tutorials, you should have a look here.
http://www.noeska.com/doal/tutorials.aspx
There is an OGG playback tutorial that will explain how to stream and decode audio from your harddrive. This will almost work the same for MP3. You only need a different library for decoding. I believe I have some sourcecode for that (taken from a tutorial, but I can't find it now).
Edit: I noticed that one of the tutorials DOES cover MP3 briefly. It uses the mpg123 library. Have a look at that.
Last edited by chronozphere; 02-10-2010 at 02:16 PM.
Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.
I found where was a problem... So, now I can say - do not use CreateThread when you use FreePascal 2.4.x and later. Maybe in future releases there will be a fix, but for now better way to use BeginThread.
Bookmarks