[smpeg] Playing MP3 from memory...

Ryan C. Gordon icculus at clutteredmind.org
Sun Mar 21 18:04:12 EST 2004


>    One of the guys on the JEDI-SDL mailing list had this request...
> "Can I use smpeg to play an Mpeg file from memory, I want to load the
> file into allocated memory or MemStream then play the file, I have 512
> Mb memory installed and I want to paly a certain file (arround 100 Mb)
> repeatedly for the whole day, so I do not want to harm the hard drive."
>
> What would be the best way to tackle this issue.

Use SMPEG_new_data(), or SMPEG_new_rwops() in conjunction with
SDL_RWFromMem().

--ryan.






More information about the smpeg mailing list