PerlGameDev / SDL

Rehashing the old perl SDL binding on cpan.org
http://search.cpan.org/dist/SDL
GNU General Public License v2.0
81 stars 29 forks source link

Update/rewrite of SDLx::Sound #286

Open isync opened 7 years ago

isync commented 7 years ago

I found that SDLx::Sound was in a poor state: the POD was describing features the module doesn't offer and then some of the internal workings I felt were laid out in an unfortunate way. While I wanted to use it, I did a small rewrite and expanded the POD a bit to help others with a quick start.

I don't know what the general direction of the SDLx branch of modules is, as there's SDLx::Music, SDL::Mixer::Music, and then SDLx::Sound but in case the ::Sound module remains in, I'd like to offer my quick improvements for merge here.

(Ah, um, I didn't run the test suite, but the bundled _examples/SDLx/SDLxSound.pl works.)