Active Topics

 


Reply
Thread Tools
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#1
This is a little historic of libSDL-mixer on Maemo5.
(SDL is library mostly used for game development. SDL-mixer is library for handling audio on SDL-games).


--
Package libsdl-mixer1.2 is part of the base system (officially from Nokia). It's version number is 1.2.6-5+0m5. This package has fault: it can't play ogg/mp3 -files, which makes it very unusable for gaming.

If you install any other version on your phone, mp-fremantle-pr is uninstalled. It is metapackage handling your firmware version, so you won't get notification when Nokia release new firmware (you can still upgrade to it).
I would say uninstalling this package is not big deal.

http://maemo.org/packages/view/libsdl-mixer1.2/
*
Then there are in extras very same source code, but compiled with ogg and mp3 support (and support for mikmod-library for s3m/mod). It's version number is 1.2.6-5+0m5+ogg+mp3. This is more usable for gaming.

Btw: This is one of the famous package to proof that extras quality assurance is not working, because this package is on extras, but installing it will remove older OFFICIAL-package.
(e.g. http://talk.maemo.org/showpost.php?p...&postcount=153)

---------------------------------------
This was status before my contribution (or messing).
-----------------------------------------

I found that there are old issue (bug?) for using SDLmixer+mikmod. It will create zero length 'music.raw' file on current directory, so that directory must be writeable for user (which is not good thing in general).


I gathered some information and seems only hint is "recompile without external mikmod"
http://osdl.sourceforge.net/main/doc...SDL-audio.html
Q: Using an external libmikmod creates music.raw files
A: One solution is to manually rebuild SDL_mixer whilst disabling use of an external libmikmod.

https://forums.gentoo.org/viewtopic-...9-start-0.html
A: Then recompile sdl-mixer [without mikmod].


And here are some tmo posts about 'music.raw':

http://talk.maemo.org/showpost.php?p...0&postcount=67
*There is a pygame issue where it leaves a file called "music.raw" in the directory where it was last run.

http://talk.maemo.org/showpost.php?p...1&postcount=55
*I found out that the "music.raw" file was owned by root

http://talk.maemo.org/showpost.php?p...7&postcount=13
*game creates music.raw (0 bytes) in bin directory, this could have been the reason.

http://talk.maemo.org/showpost.php?p...7&postcount=12
*rm music.raw


Today I pushed libSDL-mixer version 1.2.6-5+0m5+ogg+mp3-2, which is again very same source code, compiled with ogg/mp3 support, but this time with bundled mikmod. Now it doesn't cause any side effects.

*
I have 5 packages on extras/testing/devel using sdl-mixer and additional 5 with bundled mixer (because of useless official version), and I'm now starting to use better SDL-mixer, even it cause users to lose mp-fremantle-*-pr.

Any comments?
 

The Following 7 Users Say Thank You to AapoRantalainen For This Useful Post:
Posts: 31 | Thanked: 23 times | Joined on Feb 2011
#2
Maybe it is a good idea to ask CSSU team to include libSDL-mixer in CSSU?
 

The Following 2 Users Say Thank You to edoiks For This Useful Post:
Posts: 1,101 | Thanked: 1,184 times | Joined on Aug 2008 @ Spain
#3
Originally Posted by edoiks View Post
Maybe it is a good idea to ask CSSU team to include libSDL-mixer in CSSU?
That's the right way to deal with mp-frenantle-pr, and fix the bug.
Your package in extras-devel will be nice for those not using CSSU, though.
 

The Following User Says Thank You to maacruz For This Useful Post:
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#4
Would installing it as libSDLmixer...fixed.so and using this as dependency (-lSDLmixer...fixed on linking) and just additional package allow for not uninstalling mp...? Not perfect but 10 apps would require this file only once this way, instead of packaging it each time. Still far from perfect.
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:14.