Jump to content
  • Advertisement
Sign in to follow this  
Replicon

[SDL] Midi music and rwops

This topic is 4389 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was looking through some of the various SDL header files, to check if some of the functions support RWOPS (instead of the old fashioned 'filename' interface). Looks like IMG_Load_RW and Mix_LoadWAV_RW both exist. However, I'm a little skeptical about Mix_LoadMUS_RW. It's there, but surrounded by "#ifdef USE_RWOPS", with a comment saying it hasn't been hooked into music.c yet. ...but then again, the comment is from April 2000, and I figure 6 years ought to be enough time to get it done. Does anyone know the status of this? I'll have to try it out when I get to that point. Maybe sending a USE_RWOPS as a makefile parameter will make it work, but then, maybe it will completely bork. Does anyone know the status of this?

Share this post


Link to post
Share on other sites
Advertisement
I don't see that define in sdl_mixer 1.2.7, which version are you using? Looking at music.c apparently Mix_LoadMUS_RW can load midi via timidity or win32 midi functions.

Share this post


Link to post
Share on other sites
Hmm, according to packages.debian.org, I'm looking at version 1.2.6-1. That's what comes with the stable release, but I guess I can build a later release and link that instead (as long as there are no serious restrictions about which version of SDL to use - my libsdl1.2-dev is listed as 1.2.7+1.2.8cvs20041007-4.1).

Grr, I'll also have to check my windows version.

cheers!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!