View Full Version : How do I install sound in FreeCiv 2?
mostwanted
May 5th, 2005, 12:27 PM
a backport.
I get this message simon@ubuntu:~ $ civclient
1: Kunne ikke finde lydopsætning i filen "stdsounds".
1: For at få lyd skal du installere en lydopsætning.
1: Lydopsætning kan hentes hjem fra <ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets>.
Which means "Couldn't find sound setup, to get sound you need a sound setup, download sound setup from <ftp://ftp.freeciv.org/freeciv/contrib/sounds/sets>".
So I go there, and download an archive, but where do I extract it to?
Equanimity
May 6th, 2005, 03:42 AM
FreeCiv 2.0.0 is located at /usr/share/games/freeciv/
The "stdsounds" directory is placed in this folder, alongwith the soundspec file. However, it appears that /dev/sequencer is needed for the sounds to play correctly, and that device doesn't exist on my machine. I havn't investigated a solution for this issue yet (it may be as simple as a symlink).
Keith_Beef
May 23rd, 2006, 11:13 PM
I'm having problems with this, too...
$ civclient -v
Freeciv version 2.0.2 gui-gtk-2.0
$ civclient -t trident
Audio File Library: 'data/stdsounds/foot3.ogg': unrecognized audio file format [error 0]
1: Error while caching sample <-1>: confirm value != samples[].id
Audio File Library: 'data/stdsounds/woodbrk.ogg': unrecognized audio file format [error 0]
Audio File Library: 'data/stdsounds/wall01.ogg': unrecognized audio file format [error 0]
1: last message repeated 2 times
Audio File Library: 'data/stdsounds/metbrk.ogg': unrecognized audio file format [error 0]
So civclient is finding the soundset, but can't play it.
I tried linking the existing sequencer like this:
# ln -s /dev/.static/dev/sequencer /dev/sequencer
but that didn't cure the problem...
Using Totem or Beep, I can play OGG files that I have ripped from my CD collection.
Beef.
Snowball
July 12th, 2008, 04:39 PM
I am having the same problem.
I managed to get sounds in freeciv in Ubuntu 6.? (the previous version). But today I upgraded to 7.04 and now it doesn't work anymore.
NovruzeliH
July 12th, 2008, 04:46 PM
so u guys downloaded the soruce code huh ??? well do u try it with wine or not yet ?
Snowball
July 12th, 2008, 04:50 PM
I am not that much experienced that I know what 'wine' is. I saw it a couple of times though. I will figure that out.
By the way: here is my shell output:
1: Error calling Mix_OpenAudio
1: Plugin sdl found but can't be initialized.
2: No real audio subsystem managed to initialize!
2: Perhaps there is some misconfiguration or bad permissions
2: Proceeding with sound support disabled
NovruzeliH
July 12th, 2008, 04:57 PM
well there is something really messed up there, wherever u installed the game, try downloading the sound files and putting it into the folder "/usr/share/games/freeciv/ " just like Equanimity said :p give it a try, if not, try downloading and installing wine, then download the windows version of the game , and install it with wine, if that wont help then i dont know whats wrong
sorry
Snowball
July 12th, 2008, 04:57 PM
So 'wine' can execute windows program under Ubuntu. That would be nice for a lot of things, so I may be trying that soon.
But my problem is that Freeciv worked, truely in Ubunty, in my previous version. I looked it up and I am further than I thought I was. I upgraded to 8.04 today (Hardy Heron). I came from Gutsy Gibbon. Before my upgrade, everything was OK. Now I have no sound in freeciv.
Does anybody know how I can fix this?
Snowball
July 12th, 2008, 05:12 PM
I spent some investigating as well. My sound settings are all OK. I managed to get sound now in Hardy Heron too.
In my folder /usr/share/games/freeciv I have a folder made named 'stdsounds' and it contains the following files:
foot3.ogg LrgExpl.ogg MgBar1.ogg Mortar.ogg THover.ogg woodbrk.ogg
inh2o.ogg MedCan.ogg MgBar2.ogg SmlExpl.ogg Tread.ogg
LrgCan.ogg metbrk.ogg MgHeavy.ogg Splash.ogg wall01.ogg
I downloaded these files as described on the standard website of freeciv.
My problem however was that I couldn't get sound anymore after I upgraded to Hardy Heron. It seems that 'Mix_OpenAudio' (which I think is some kind of program that is used by several other programs) can only work with one program at the time. I was playing music when I started freeciv, so the 'Mix_OpenAudio' was 'occupied'. If I start freeciv without any music playing, everything is allright and I do get sounds when playing. However, if I start some music player (rhythmbox) and try to get music after having started freeciv, then the music player doesn't give me sound.
So the situation is far from perfect, but I do have sounds in my freeciv now.
NovruzeliH
July 12th, 2008, 05:12 PM
hmm try making ur sound trhorugh ALAS i guess if that dont work, then im not sure man, and yeah i dont use Ubuntu 8.04 i use xubuntu 8.04 :P
Snowball
July 13th, 2008, 04:28 AM
That would be too much for me. If one doesn't even know what 'wine' is (let alone have it working on my computer) it certainly is not a good idea to change the way programs work with sounds...
But thanks anyway. I hope future Ubuntu releases will solve this problem.
NovruzeliH
July 13th, 2008, 07:55 AM
well Snowball there is one way you can play in, by installing virtual box, and then installing xp or any other windows on it, just put the space like 20 GB, and install few games that you need and start playing it :p
Snowball
July 17th, 2008, 05:06 PM
Thanks again. I really appreciate all your suggestions. But as a Ubuntu-user, it somehow feels like a defeat to be forced to use Windows for these kind of problems. Even if it's within Ubuntu. It just shouldn't be that way. It's not a copyright thing that we're dealing with here. Why is it suddenly not possible anymore to use two sound-producing programs at the same time? Makes me wanna go back to my old version. And that should not be the case with new versions.
By the way, I used XMMS before. But that is now not available anymore. Very curious... Maybe I will switch back to the older version.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.