Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Alternatives to SDL

by Corion (Pope)
on Feb 06, 2007 at 22:09 UTC ( #598651=note: print w/replies, xml ) Need Help??


in reply to Alternatives to SDL

Depending on whether you want an integrated toolkit or are prepared to fudge your UI together from single parts, maybe going back to OpenGL for the drawing (via the MESA software renderer or some supported hardware renderer) and using the fmod library for the mixing and playback of whatever sound you have could be a solution.

OpenGL has the advantage of having Perl bindings available and it has Glut, a somewhat basic user interface library. It completely lacks widgets and doesn't have much in the way of event handling though.

Fmod is a commercial library which is gratis for open source projects and I had great success in playing back mp3 files with it. I didn't bother to fudge around with other solutions but if fmod is ruled out, maybe the Ffmpeg modules (both, the command line or the XS variant) might provide adequate playback functionality.

Replies are listed 'Best First'.
Re^2: Alternatives to SDL
by shotgunefx (Parson) on Feb 07, 2007 at 00:06 UTC
    That might not be a bad idea, but I haven't looked at OpenGL from a programming perspective in ages. Suppose there was a little hesitation there.

    SDL doesn't have any widgets either, so I wouldn't be losing anything, I guess I'll have to take a look at it from a distance and see how easy it's going to be to grok.

    One of the things that I wanted for the dashboard part was to use a 3D model of my car that I have in conjucture with the diagnostics, but since it's mostly dressing, I was saving that for last.

    I've recently used ffmpeg, but only for converting stuff. Never thought of using it for playback. I guess I'll have to poke around and whatever has the best docs/most active will get the nod. That or maybe I'll take my own shot at an Wx+SDL library.

    Just hate wasting so much time.

    -Lee
    "To be civilized is to deny one's nature."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://598651]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2021-12-05 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (31 votes). Check out past polls.

    Notices?