Results 1 to 10 of 17

Thread: MP3 playback for Prometheus

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    code_glitch
    Quote Originally Posted by code_glitch
    what do you use for playing audio?
    OpenAL and ogg libraries. Also I use DirectSound for Windows. All source source code of my library you can grab from svn here and try to understand how my sound subsystem works If you want, I can try to add mp3 support through libmad.
    Last edited by WILL; 09-10-2010 at 10:06 PM. Reason: Moved portion of post here to allow continuation of conversation.

  2. #2
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Thats ok. I've dug up the Bass library, which can be compiled on linux, mac and windows, so its got the bases covered. Also its small and handles just about any file format you throw at it. But dont get me wrong, I still have an interest in any library that is cross platform, GPL and play's mp3 files. (the mp3 part there for compatibility's sake)

    cheers,
    code_glitch.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  3. #3
    You can try mpg123 as the decoder, i have converted the headers for the dll some time ago.
    But i think you should stick with BASS or something free like OGG + OpenAL
    From brazil (:

    Pascal pownz!

  4. #4
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    I'm more so for completely free options than Bass myself. Bass is great for freeware games, which any beginner would be doing, however as development gets more serious and beginners become novices, this choice in mp3 playback may scare away potential continuing usage of the game library once all the basics have been learned.

    Even as beginners, us independent developers let our heads get big at the start. We all want to be able to release the next big thing and small things like shareware license fees can seem like large limitations so we will seek out newer alternatives. That's kind of what it was like in the days of DelphiX before 3D hardware acceleration was put in. Other game libraries were first spawned because of this missing feature.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5
    Also, there is a LGPL alternative for BASS http://audiere.sourceforge.net/
    From brazil (:

    Pascal pownz!

  6. #6
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    could anyone suggest a good tutorial.example of how to use mpg123 or OpenAl?
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  7. #7
    I believe Noeska had a tutorial, but I can't find it anymore.

    Edit: Maybe you'll find this interesting: http://www.pascalgamedevelopment.com...ghlight=mpg123
    Last edited by chronozphere; 11-10-2010 at 07:18 AM.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

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
  •