No Music in Linux
Moderator: OpenTTD Developers
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
No Music in Linux
I am running OTTD in linux, but cannot get music. I have copied the gm folder frow Win TTD into both the OTTD directory and the OTTD/data directory, but I cannot get music. I can get sounds fine. Does anyone know how I can get the music?
Also, while it is not affecting me while I am playing, I am getting many "dbg:frameskip" (or something like that) messages in my terminal which I find after I have quit.
Also, while it is not affecting me while I am playing, I am getting many "dbg:frameskip" (or something like that) messages in my terminal which I find after I have quit.
Re: No Music in Linux
Read my sig.Conditional Zenith wrote:I am running OTTD in linux, but cannot get music. I have copied the gm folder frow Win TTD into both the OTTD directory and the OTTD/data directory, but I cannot get music. I can get sounds fine. Does anyone know how I can get the music?
"There's a readme that comes with the source. I suggest you read it."
- Korenn
- Korenn
-
- Tycoon
- Posts: 14275
- Joined: 09 Jan 2003 08:37
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
-
- Chief Executive
- Posts: 697
- Joined: 10 Jun 2003 00:19
- Location: Australia
-
- Traffic Manager
- Posts: 213
- Joined: 05 Apr 2004 08:38
- Location: Ede, The Netherlands
- Contact:
Somebody told:
I hope that in the next release this readme is included.
which tells:dominik81 wrote:Read my sig.
There you could find the readme file which is released at May 8th and OpenTTD 0.3.1 is released at April 26th."There's a readme that comes with the source. I suggest you read it."
I hope that in the next release this readme is included.
Ive done as the readme states and if i run
i get the music playing, but if i run
i still don't get any midi, and i have all the files
from /gm/ lying under /gm/ in my gamefolder on linux.
Can anyone plz help me to what i am doing wrong?
Gof
Code: Select all
timidity somettdmusicfile.gm
Code: Select all
./ttd -m extmidi
from /gm/ lying under /gm/ in my gamefolder on linux.
Can anyone plz help me to what i am doing wrong?
Gof
* To study is fun, when you have vacation *
Are you sure that you have them all in the correct folder? Look at Makefile.config and check "DATA_DIR_PREFIX:=". Is it set to any particular directory? If yes, you have to move the gm folder to the specified directory.
"There's a readme that comes with the source. I suggest you read it."
- Korenn
- Korenn
Ok i tried moving the gm folder and i found out that that wasen't the problem
because when i moved it i got file not found errors while playing openttd,
so the location was right, i moved em back and errors dissapeared.
But i still get no music.
I know timidity++ is working because i can play the songs with timidity,
and i know the .gm files is in right location because if i move them to
somewhere diffrent i get file not found errors. And i am using ./ttd -m extmidi
to start the game. But no music
Anyone have any good ideas?
Gof
because when i moved it i got file not found errors while playing openttd,
so the location was right, i moved em back and errors dissapeared.
But i still get no music.
I know timidity++ is working because i can play the songs with timidity,
and i know the .gm files is in right location because if i move them to
somewhere diffrent i get file not found errors. And i am using ./ttd -m extmidi
to start the game. But no music
Anyone have any good ideas?
Gof
* To study is fun, when you have vacation *
-
- Engineer
- Posts: 1
- Joined: 06 Jun 2004 17:04
- Location: Finland
-
- Engineer
- Posts: 1
- Joined: 10 Jun 2004 18:16
Well, i tried all the things that are listed in the readme... But no sounds here.
In Makefile.config i set DATA_DIR_PREFIX:=/home/dennis/games/openttd
But then also it doesn't work, i get this error:
Runnig RedHat 9, installed the latest TiMidity++, rebuild the game, nothing helped.
Anyone who had an idea ?
In Makefile.config i set DATA_DIR_PREFIX:=/home/dennis/games/openttd
But then also it doesn't work, i get this error:
Code: Select all
extmidi: couldn't execl: No such file or directory
extmidi: play song failed
Anyone who had an idea ?
I have the same problem as Nikerabbit, because my crappy sound card can not do multiplexing... So timidity won't be able to play, because sound is already in use by the game itself
I think this was already suggested, but why not use SDL_mixer instead of fork+execl of timidity? Since SDL is already used for sound... Sadly I don't have time to check it out myself, but combining existing code and some inspiration from SDL tutorials (like http://www.kekkai.org/roger/sdl/mixer/index.html ) could make it.
I think this was already suggested, but why not use SDL_mixer instead of fork+execl of timidity? Since SDL is already used for sound... Sadly I don't have time to check it out myself, but combining existing code and some inspiration from SDL tutorials (like http://www.kekkai.org/roger/sdl/mixer/index.html ) could make it.
Voyageur
Linux-powered
Linux-powered
gof.dk
I have the same problem as you and apparently, it doesn't come from the game but the multiplexing drivers as voyageur stated :
I tried launching the game by :
./ttd -s null -m extmidi
then the music worked but evidently without sound
I remember that I can't play - let's say - mplayer and xmms together so it must come from the mixer or something. Does anyone knows how to solve that ?
I have the same problem as you and apparently, it doesn't come from the game but the multiplexing drivers as voyageur stated :
I tried launching the game by :
./ttd -s null -m extmidi
then the music worked but evidently without sound
I remember that I can't play - let's say - mplayer and xmms together so it must come from the mixer or something. Does anyone knows how to solve that ?
--
Nazcafan
"Stay on target !"
Nazcafan
"Stay on target !"
A fix is to use a software multiplexer, namely esd, arts (from kde), jack, or dmix (if you have alsa sound drivers). But you have to set them up to intercept sound, and using programs like esddsp to do so (in this case extmidi.c calls have to be modified to use it).
But I recently discovered that the alsa drivers/libs have a software multiplexer, timidity can use alsa and sdl programs too. I'm currently trying to make all of these work on my system (side effect: allow xmms to play ogg files and licq to play "new message" sounds)
See:
http://alsa.opensrc.org/index.php?page=DmixPlugin
http://alsa.opensrc.org/index.php?page= ... irty+HOWTO
Well it's rather a hack than a fix, SDL_mixer would be quite better to it! But using it will mean some recoding of audio output too...
But I recently discovered that the alsa drivers/libs have a software multiplexer, timidity can use alsa and sdl programs too. I'm currently trying to make all of these work on my system (side effect: allow xmms to play ogg files and licq to play "new message" sounds)
See:
http://alsa.opensrc.org/index.php?page=DmixPlugin
http://alsa.opensrc.org/index.php?page= ... irty+HOWTO
Well it's rather a hack than a fix, SDL_mixer would be quite better to it! But using it will mean some recoding of audio output too...
Voyageur
Linux-powered
Linux-powered
Who is online
Users browsing this forum: Amazon [Bot] and 2 guests