Got sound but no music under linux, ubuntu
Moderator: OpenTTD Developers
Got sound but no music under linux, ubuntu
I can only hear the sounds while in game, not the music. Ive copied all the .gm files from the original game to the necessary folders, and while in game, when I press the jukebox button, it speeds through all the songs. Like when you have the song files, but they are empty. However, I already checked this and the files have (I think) the correct sizes.
Im running Ubuntu Edgy Eft, with a USB headset.
thanks for any help,
Im running Ubuntu Edgy Eft, with a USB headset.
thanks for any help,
Do you have timidity or some other midi player on your system? You either need to specify it yourself, or compile it into openttd.
TrueLight: "Did you bother to read any of the replies, or you just pressed 'Reply' and started typing?"
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
<@[R-Dk]FoRbiDDeN> "HELP, this litte arrow thing keeps following my mouse, and I can't make it go away."
I have managed to get openTTD to play music using my SB Live's wavetable. This way it's not using timidity and caning my CPU.brazso wrote:Hi Tuffy,
I have experienced the same problem, but I know that my sound card does not play midi files in linux/alsa. At least so far I could not set it up with my SB Audigy LS. Can you play other midi files?
brazso
I'm running Ubuntu Feisty (7.04), so adjust as necessary for your distro.
First install the awesfx package.
Then find the files 8mbgmsfx.sf2 4gmgsmt.sf2 and 2gmgsmt.sf2 from the SB Live installation CD (or somewhere on your windows partition) and put them into /usr/share/sounds/sf2
Run
Code: Select all
asfxload 8mbgmsfx
Next run
Code: Select all
aplaymidi -l
Code: Select all
Port Client name Port name
14:0 Midi Through Midi Through Port-0
16:0 SBLive 5.1 [SB0060] EMU10K1 MPU-401 (UART)
17:0 Emu10k1 WaveTable Emu10k1 Port 0
17:1 Emu10k1 WaveTable Emu10k1 Port 1
17:2 Emu10k1 WaveTable Emu10k1 Port 2
17:3 Emu10k1 WaveTable Emu10k1 Port 3
run the following substituting for the port above.
Code: Select all
export ALSA_OUTPUT_PORTS="17:0"
Assuming That worked correctly, the last step is to edit ~/.openttd/openttd.cfg
In the [music] section set the extmidi line to:
Code: Select all
extmidi = /usr/bin/aplaymidi
good luck,
Alex
No problem. See here.TrueLight wrote:Would you mind adding this in the wiki? (at the right place of course). Would be very useful! Tnx
I've put it in the Installation Category, but I haven't linked to it from anywhere yet. I'm still finding my way round the wiki. Suggestions/improvements welcome.
thanks,
Alex
Who is online
Users browsing this forum: Amazon [Bot] and 4 guests