Page 2 of 2
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Mon Jun 23, 2014 10:39 pm
by carkasjak
I've also had this issue on every version I've tried thus far. (between 0.9.8 and 0.10.1)
I am running Debian Unstable/Sid and the 64bit version of the game.
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Tue Jun 24, 2014 3:04 pm
by squisher
To summarize the solution, posted by Nemoder and Dedas:
1. Create or edit /etc/allegro5rc, and set to:
[graphics]
driver=default
[audio]
driver=oss
2. Start the game with "padsp ./factorio" (padsp is included in the pulsaudio-utils package)
(there should be no need to restart pulseaudio).
This worked on Fedora 18 x64.
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Tue Jun 24, 2014 10:44 pm
by carkasjak
squisher wrote:To summarize the solution, posted by Nemoder and Dedas:
1. Create or edit /etc/allegro5rc, and set to:
[graphics]
driver=default
[audio]
driver=oss
2. Start the game with "padsp ./factorio" (padsp is included in the pulsaudio-utils package)
(there should be no need to restart pulseaudio).
This worked on Fedora 18 x64.
This workaround works for me too.
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Tue Jul 15, 2014 11:53 am
by Whyte
Hi!
I managed to fix the delay by running Factorio like this:
No other file editing needed. Maybe you (the devs) can try setting that environment variable inside the game, before initiatlizing the sound?
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Tue Jul 15, 2014 2:45 pm
by CorrettoSambuca
I can confirm this workaround working for me.
Currently on Ubuntu 14.04 and the latest Factorio 0.10
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Tue Jul 15, 2014 11:04 pm
by Algram
Followed squishers instructions and my sound issues are gone now (:
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Wed Jul 16, 2014 12:08 pm
by slpwnd
Whyte wrote:Hi!
I managed to fix the delay by running Factorio like this:
No other file editing needed. Maybe you (the devs) can try setting that environment variable inside the game, before initiatlizing the sound?
Good idea, though we probably ask one of you guys to test such a build (we couldn't reproduce this).
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Thu Jul 17, 2014 4:58 pm
by Algram
Just do, the Linux guys are all in for this :b
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Tue Jul 22, 2014 4:55 pm
by cube
Hi, I was reading about this a little and found that setting the PULSE_LATENCY_MSEC doesn't really work for everyone. (they were talking about skype, but I guess the problem will be the same).
Is there anyone using pulse audio who has the sound working out of the box? What do you have in the variable now?
...you print it using
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Tue Jul 22, 2014 5:03 pm
by Whyte
Mine does not seem to be set to anything, so it's either a default or something Allegro sets. But setting it to 20 fixes the delay. The variable is an override, not something a user should usually have on their system.
I'm running stock Ubuntu 14.04, and Factorio 0.10.3 (and previous ones).
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Wed Jul 23, 2014 7:56 am
by cube
So in 0.10.4 the environment variable is set automatically on start, but never overwritten (so you can set it to other value yourself). Hope this doesn't break stuff for other people
Re: [0.9.* & 0.8.8] Major sound delay on Linux
Posted: Wed Jul 23, 2014 8:05 am
by Whyte
cube wrote:So in 0.10.4 the environment variable is set automatically on start, but never overwritten (so you can set it to other value yourself). Hope this doesn't break stuff for other people
Yep, a very reasonable workaround!