Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300061 - games-fps/quake2-icculus: playing music from directory
Summary: games-fps/quake2-icculus: playing music from directory
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-07 16:33 UTC by Victor Gaydov
Modified: 2010-01-08 10:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the patch (quake2-icculus-0.16.1-mixer.patch,12.64 KB, patch)
2010-01-07 16:34 UTC, Victor Gaydov
Details | Diff
ebuild I'm using (quake2-icculus-0.16.1-r1.ebuild,5.63 KB, text/plain)
2010-01-07 16:35 UTC, Victor Gaydov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Gaydov 2010-01-07 16:33:43 UTC
Here is a patch for loading music tracks from files instead of using CD in sdlquake. It uses SDL Mixer to play files. Changes:

 - new CDAudio_ functions that call SDL Mixer
 - using SDL Mixer instead of SDL Audio directly in SDL initialization

Files are searched in ~/.quake2/music and /usr/share/quake2/music in form of  "trackN.*" and in any format that the mixer supports.

There are such patches for windows but I didn't find one for icculus quake. For now the sound is a bit noisy. I haven't use SDL Mixer before and I'll be glad to hear any advices.

Reproducible: Sometimes
Comment 1 Victor Gaydov 2010-01-07 16:34:29 UTC
Created attachment 215563 [details, diff]
the patch
Comment 2 Victor Gaydov 2010-01-07 16:35:21 UTC
Created attachment 215565 [details]
ebuild I'm using

USE="sdl mixer" emerge quake2-icculus
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2010-01-07 16:41:01 UTC
This would be better sent upstream.  It's not an enhancement to the Gentoo ebuild but rather an enhancement to the program itself.
Comment 4 Victor Gaydov 2010-01-07 16:52:06 UTC
I understand but since I'm not sure that such thing will be accepted I decided to post it here for somebody who's looking such thing.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2010-01-07 16:56:22 UTC
you should definitely try upstream first.  that's the gentoo way in any case.  plus, if upstream really isn't interested then neither are we since adding functionality for just the gentoo package introduces a maintenance burden on us.
Comment 6 Victor Gaydov 2010-01-07 17:14:56 UTC
No problem