Brian Cassidy wrote:
I noticed that method, but it always returned an empty string -- do
you have any more details on how i can enable that method?
SV*
SurfacePixels ( surface)
SDL_Surface* surface
CODE:
RETVAL = newSVpvn(surface->pixels, surface->pitch * surface->h *
surface->format->BytesPerPixel);
OUTPUT:
RETVAL
Should fix it. the version in CPAN is missing the key BytesPerPixel :)
Not having audio is okay as this is just for fun...
If you use SDL_Mixer & SDL_Sound you can play lots of different types of
audio. And if you can extract the PCM audio out into WAV files (which
are just PCM data with a header telling you how they are formatted) you
should beable to play them with the existing code base.
Dave