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

Thread: MP3 playback for Prometheus

  1. #11
    I know where to find Noeska's tutorials. I just recall that there was one covering MP3 playback, but I can't find that one.
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #12
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    'Noeska's tutorials' - I'm getting a lot of these as responses. However, there is one thing I inherently dislike: I've never, like ever, worked with lazarus or delphi... This is rather quite problematic when trying to understand a concept I don't understand at all. Even with the comments and etc. It's making life veeeery difficult. Especially when my only experience with that sort of application development is with Visual Basic.Net 2010 Beta (which I hate and dont use any more)... Apart from that, the new Prometheus_Audio based on (oh hell) OpenAl is now only capable of playing WAV. Lets hope you don't need better compression on audio files.

    Anyway, until I figure this mess of Delphi, Lazarus, C and C++ code along with the vorbis and ogg stuff, prometheus is a bit dead in the water. But hey, I might've seen worse.

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

  3. #13
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    So you've only ever used Free Pascal standalone? Man, that's hardcore.

    Well only playing in WAVE format doesn't kill the library, it just means that only part of it is implemented so far. Most people may want to use the compressed formats for music or voice files that are much longer and obviously take up more space, however simple sound effects can be stored with only PCM compression without it really hurting the size much.

    Actually I found Noeska's MP3 example post by searching Google, and guess what? Google found it here on PGD. http://www.pascalgamedevelopment.com...ll=1#post40178 Download still works so give it a try if you want to include MP3 support. Or just use it to include in your converter tool.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #14
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Cheers for that. Will definitely include it once I have time. And yes, I have only every used fpc 2.2.4 (i tried 2.4.0 but hated it because of the new error messages). Just wondering, is there an Mp3 example but for ogg too? That would be soo great. All tutorials I found used a plugin finder function with AL_EXT_vorbis in it which apparently is not used in modern revisions making my openal ogg code useless..

    cheers for that find, puts me waaay ahead,
    code_glitch

    PS: A real treat demo for all prometheus units so far: guitar hero PC (or at least its a bit like it). Now faithful keyboard users can beat yer highscores too. hell yea, teen rockers who look down on us cuz we cant use those weird guitar hero controllers.

    Edit: one more thing: I've just noticed, when you make a program it makes it easier if you write some stuff down... I admit to never having done that. Maybe thats a reasons many of my programs end up unfinished? Dont know if you guiys write stuff down.... Maybe its only c/c++ and .net people?
    Last edited by code_glitch; 12-10-2010 at 08:02 PM.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  5. #15
    how about audiere?

    http://audiere.sourceforge.net/

    mp3 and ogg along with old fashioned midi, mod, stm3 etc, looks nice, i had some pascal wrappers somwhere...

  6. #16
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Would be interested but cant find the wrappers. Although OpenAl would be preferable if I could find an updated way of playing ogg.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  7. #17
    Would be interested but cant find the wrappers
    Look down in this link:
    http://www.casteng.com/whypascal.shtml


    Although OpenAl would be preferable if I could find an updated way of playing ogg.
    Well, i have a Ogg player in Pascal using Openal, however it is done same as is done with mp3s, you need a different unit to open and decode ogg streamed data into normal uncompressed chunks sound data to then be passed to OpenAL.

    So for that you will need to get Pascal Vorbis libs.

    http://jedi.grizzlydev.com/www/apilibrary.html

    You will need to downloaded updated DLLs from Vorbis projects i think.

    'Noeska's tutorials' I'm getting a lot of these as responses. However, there is one thing I inherently dislike: I've never, like ever, worked with lazarus or delphi... This is rather quite problematic when trying to understand a concept I don't understand at all.
    Noeska tutorials are not delphi-specific, and delphi is just the VCL or group of classes included to build windows GUI apps; But the language examples are in OO Pascal so you should be fine reading that.

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
  •