pavolzetor Posted July 18, 2009 Report Share Posted July 18, 2009 Hallo, sound in menu is interupted and stragne, it plays but with artefacts Quote Link to comment Share on other sites More sharing options...
slochewie Posted October 15, 2009 Report Share Posted October 15, 2009 Same here, but I guess that is kind of expected at this point in the development stage, unless someone tells me otherwise.I followed the instructions on http://www.workswithu.com/2009/10/13/0-ad-...ing-for-ubuntu/ to install on my Ubuntu 9.04 system. Quote Link to comment Share on other sites More sharing options...
janwas Posted October 17, 2009 Report Share Posted October 17, 2009 hm, what kind of artifacts? Popping/Crackling? Any chance you could record a clip of the output you're hearing?Same here, but I guess that is kind of expected at this point in the development stage, unless someone tells me otherwise.Fair point. I will say, though, that OpenAL on Linux has caused disproportionate amounts of trouble - we've noticed several bugs there. OpenAL on Window seems to be much more solid.Unfortunately I don't know much about diagnosing this. Is it possible to switch to another backend? (See ~/.openalrc) Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 17, 2009 Report Share Posted October 17, 2009 There's also a recent (2 week old) update of OpenAL Soft (which I believe most Linux distros use), so it may be worth seeing if that fixes the PulseAudio issues. Quote Link to comment Share on other sites More sharing options...
slochewie Posted October 17, 2009 Report Share Posted October 17, 2009 Popping/Crackling for sure on my system.Looks like Ubuntu 9.04 has OpenAL 1.4.727.I foundhttps://bugs.launchpad.net/ubuntu/+source/openal/+bug/194919Sounds like an old bug. I guess I could try building openal from source using a newer version, but I rather just wait for update in the Ubuntu repositories Quote Link to comment Share on other sites More sharing options...
janwas Posted October 18, 2009 Report Share Posted October 18, 2009 I foundhttps://bugs.launchpad.net/ubuntu/+source/openal/+bug/194919Sounds like an old bug. I guess I could try building openal from source using a newer version, but I rather just wait for update in the Ubuntu repositoriesMan, that sounds terrible, and who knows when they'll actually switch to OpenALsoft. Development on Windows does have a few occasional advantages If you are able to do so, building a recent version of OpenALsoft (e.g. from git or snapshot) would definitely be an improvement. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted October 20, 2009 Report Share Posted October 20, 2009 who knows when they'll actually switch to OpenALsoftThey did over a year ago, if I'm reading that bug report correctly. Jaunty has 1.4, Karmic has 1.8.Development on Windows does have a few occasional advantages Well, it has the advantage that it has no automatic package manager and therefore you'd have to compile everything from source manually, and it doesn't have a standard compilation environment so that's usually a huge pain, and so library developers take pity on you and provide pre-compiled binaries that you hope might be compatible with the CRT version you're using Quote Link to comment Share on other sites More sharing options...
digiPixel Posted December 23, 2009 Report Share Posted December 23, 2009 hm, what kind of artifacts? Popping/Crackling? Any chance you could record a clip of the output you're hearing?Same here, but I guess that is kind of expected at this point in the development stage, unless someone tells me otherwise.Fair point. I will say, though, that OpenAL on Linux has caused disproportionate amounts of trouble - we've noticed several bugs there. OpenAL on Window seems to be much more solid.Unfortunately I don't know much about diagnosing this. Is it possible to switch to another backend? (See ~/.openalrc)Not so sure that OpenAL is really the culprit, at least on Ubuntu. You may be surprised to find that Pulse Audio is the actual culprit on Ubuntu, although I do not know what other Linux distributions are using the exact same sound system.Back when I was using Ubuntu 8.04 (yes it used Pulse Audio) there were no issues with audio performance, especially with OpenAL based programs like UT 04. However when I made the move to Ubuntu 9.10 there was a huge regression in sound performance. For the first time I heard sound crackling and popping non stop in certain programs that I ran (eg UT 04).The situation was so bad that I was looking for an effective solution that would at least minimise the problems to the point where it couldn't be noticed. Upon looking on the web an article was found on disabling Pulse Audio in Ubuntu 9.04 (same trick applies to 9.10). After going through all of the steps in the article there were noticeable improvements with audio performance. Sound crackling and popping suddenly disappeared, which was first noticed with the OpenAL based programs (eg UT 04).Do note that following the article on disabling Pulse Audio may not bring about any significant improvements in audio performance, however it is worth a try to see if it improves audio performance in 0AD. Also be aware that this will cause all programs that depend on Pulse Audio to not function properly. This includes the audio control and sound configuration panel (System -> Preferences -> Sound). Quote Link to comment Share on other sites More sharing options...
janwas Posted December 28, 2009 Report Share Posted December 28, 2009 Thanks for passing on your experience pavolzetor, slochewie: does disabling PulseAudio work around the trouble you're seeing? Quote Link to comment Share on other sites More sharing options...
risotto77 Posted February 4, 2010 Report Share Posted February 4, 2010 Hello all. My first post on forum I also have problems with sound and popling/crackling using Ubuntu (Karmic).First I got error:bt_audio_service_open: connect() failed: Connection refused (111)popling/crackling and then no sound.Also I got low fps problem running the game.I did:sudo apt-get install libasound2-plugins padevchooser libsdl1.2debian-pulseaudiosudo apt-get purge bluez-alsaAfter reboot sitation is a bit better. I got rid of the "Connection refused (111)" message and low fps complaints. The sound is still crackling but it does not shut down. Also the sound becomes clear if I do nothing, and if I for instance click a unit crackling starts. (?)I am not familiar with 0 A.D. and do not know how the audio pipe goes (sdl? connection to libasound2.so?). So stumbling and try to learn Please bear with me....Guess the "bt" in "bt_audio_service_open" refers to bluetooth? Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted February 4, 2010 Report Share Posted February 4, 2010 Welcome I am not familiar with 0 A.D. and do not know how the audio pipe goes (sdl? connection to libasound2.so?)We just use OpenAL. As I understand it, there are known problems between OpenAL and PulseAudio in Ubuntu that cause problems for quite a few games, and so it should be fixed by Ubuntu people soon (maybe next release or something) and there's nothing we can easily fix ourselves. Not sure if there's anything you can do immediately except disable PulseAudio (and presumably switch to ALSA), which doesn't sound trivially easy. Quote Link to comment Share on other sites More sharing options...
risotto77 Posted February 4, 2010 Report Share Posted February 4, 2010 (edited) Ok solved problem with crackling. Crystal clear sound now all the way.following this guide:In the terminal:sudo gedit /etc/openal/alsoft.confchange the divice line form Alasa backend stuff to this:## ALSA backend stuff##[alsa]## device:# Sets the device name for the default playback device.device = alsaremember to un coment it.Hope this helps. Edited February 4, 2010 by risotto77 Quote Link to comment Share on other sites More sharing options...
risotto77 Posted February 4, 2010 Report Share Posted February 4, 2010 (edited) Not really sure what is going on, but looks like an OpenAL-alsa-Pulseaudio problem.AL lib: alsa.c:388: Could not open playback device 'alsa': No such file or directorySND| alc_init: success, using OSS SoftwareMaybe better to set OpenAL to use OSS directly with "drivers = oss". With "drivers = pulse" 0 ad will not start at all (black screen).There is a bug track here suggesting to upgrade alsa. I will try later.Edit: No I will not try. As far as it works really well with the "drivers = oss" there is no problem. Edited February 4, 2010 by risotto77 Quote Link to comment Share on other sites More sharing options...
ashbygeek Posted February 15, 2010 Report Share Posted February 15, 2010 In the terminal:sudo gedit /etc/openal/alsoft.confchange the divice line form Alasa backend stuff to this:## ALSA backend stuff##[alsa]## device:# Sets the device name for the default playback device.device = alsaremember to un coment it.Hope this helps.worked for me as long as i used any other device besides pulse. Just thought I'd let you know. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.