Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270886 - Openttd-0.7 using aplaymidi as default midiplayer
Summary: Openttd-0.7 using aplaymidi as default midiplayer
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-23 00:07 UTC by Bas Nedermeijer
Modified: 2009-06-08 17:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bas Nedermeijer 2009-05-23 00:07:14 UTC
Openttd uses aplaymidi as musicplayer. This player doesnt work for my setup. Timidity does work, but there is no way to specify it. I have to create a symlink to make it work (amidiplayer -> timidity). I believe a simple modification to the ebuild should be enough to make it work. 

Reproducible: Always

Steps to Reproduce:
1. Install openttd
2. Start it
Comment 1 Anton Romanov 2009-05-23 08:31:53 UTC
>but there is no way to specify it
you are wrong.
aplaymidi works for any alsa midi sequencer that's why it was chosen instead of use flag for each linux midi player
openttd ebuild says that you should just set ALSA_OUTPUT_PORTS env variable
so if you have f.e.
 Port    Client name                      Port name
128:0    TiMidity                         TiMidity port 0
128:1    TiMidity                         TiMidity port 1
128:2    TiMidity                         TiMidity port 2
128:3    TiMidity                         TiMidity port 3

you should set 
ALSA_OUTPUT_PORTS=128:0
Comment 2 Bas Nedermeijer 2009-05-25 21:01:25 UTC
(In reply to comment #1)
> >but there is no way to specify it
> you are wrong.
> aplaymidi works for any alsa midi sequencer that's why it was chosen instead of
> use flag for each linux midi player
> openttd ebuild says that you should just set ALSA_OUTPUT_PORTS env variable
> so if you have f.e.
>  Port    Client name                      Port name
> 128:0    TiMidity                         TiMidity port 0
> 128:1    TiMidity                         TiMidity port 1
> 128:2    TiMidity                         TiMidity port 2
> 128:3    TiMidity                         TiMidity port 3
> 
> you should set 
> ALSA_OUTPUT_PORTS=128:0
> 

Ah i see. But my aplaymidi doenst show any (timidity) ports. So maybe there is something else wrong.
Comment 3 Anton Romanov 2009-05-26 04:14:07 UTC
(In reply to comment #2)
> (In reply to comment #1)
> Ah i see. But my aplaymidi doenst show any (timidity) ports. So maybe there is
> something else wrong.
> 
/etc/init.d/timidity start
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2009-06-08 17:53:01 UTC
sounds like user error to me