Thread
:
State of libSDL-mixer
View Single Post
AapoRantalainen
2012-01-22 , 22:08
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?
Quote & Reply
|
The Following 7 Users Say Thank You to AapoRantalainen For This Useful Post:
daniel_m
,
Estel
,
ivgalvez
,
reinob
,
sbock
,
szopin
,
vetsin
AapoRantalainen
View Public Profile
Send a private message to AapoRantalainen
Find all posts by AapoRantalainen