Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: [DirectSound][FreePascal 2.4.x]Playing OGG in separate threads

  1. #11
    Quote Originally Posted by code_glitch
    Could anyone suggest a good OpenAl tutorial and whether it can play mp3?
    What wrong with standard FreePascal OpenAL example? It simple and can play mp3(using libmad), ogg, dts and other formats. But mp3 sucks
    Last edited by Andru; 01-10-2010 at 08:30 PM.

  2. #12
    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.

  3. #13
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    OpenAL is quite nice to work with. And it's 3D sound by default.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #14
    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.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •