Linux Clients and Sound

The worst monsters in the Hearthlands warp the fabric of space and time..

Linux Clients and Sound

Postby Iryn » Sun Jun 13, 2010 2:56 pm

Ubuntu 10.04 64bit
I also know this to be present on Ubuntu 9.10 64bit

When playing Haven and Hearth in Linux, it prevents sounds from any other program from being played. Only Haven's sound is played.

There is a slight work around, if you have any sound using application on before launching haven, it will still work, but prevent Haven's sound from playing.

If at any point you stop using the other sound producing program, Haven will take over. At this time, it sounds like a burst of static, but it's just all the sounds that have been produced by haven playing at once. Like they have been queued. I'm not too familiar with the way Linux handles sound, but it sounds like the old days of OSS when only one application could produce sound at once.
Metzger, Lawspeaker of Nord Belka
User avatar
Iryn
 
Posts: 113
Joined: Wed Mar 03, 2010 7:33 pm

Re: Linux Clients and Sound

Postby Chakravanti » Sun Jun 13, 2010 3:32 pm

I found that Haven gave other programs boot (Lucid64 here too) like totem when listening to music would just flake and haven would start doing it's thing.

My workaround was to use Pacho's now that his repo is running again in google code. Use Ctrl+o to turn off sound.
Well what is this that I can't see
With ice cold hands takin' hold of me
Well I am death, none can excel
-Ralph Stanley, O Death!
User avatar
Chakravanti
 
Posts: 3345
Joined: Sat Aug 29, 2009 3:38 am

Re: Linux Clients and Sound

Postby DarkhVorTeX » Sun Jun 13, 2010 3:53 pm

Iryn wrote:Ubuntu 10.04 64bit
I also know this to be present on Ubuntu 9.10 64bit

When playing Haven and Hearth in Linux, it prevents sounds from any other program from being played. Only Haven's sound is played.

There is a slight work around, if you have any sound using application on before launching haven, it will still work, but prevent Haven's sound from playing.

If at any point you stop using the other sound producing program, Haven will take over. At this time, it sounds like a burst of static, but it's just all the sounds that have been produced by haven playing at once. Like they have been queued. I'm not too familiar with the way Linux handles sound, but it sounds like the old days of OSS when only one application could produce sound at once.


sudo apt-get --purge remove pulseaudio
(Don't actually do this unless you know what you're doing. I'm 99% sure it's Pulse Audio's fault though)
User avatar
DarkhVorTeX
 
Posts: 74
Joined: Sun Apr 18, 2010 10:34 am

Re: Linux Clients and Sound

Postby Chakravanti » Sun Jun 13, 2010 4:44 pm

Yeah no, I did that before trying to fix another problem and could never get sound back online. I don't doubt you're right though. PA is a lame ass bitch.
Well what is this that I can't see
With ice cold hands takin' hold of me
Well I am death, none can excel
-Ralph Stanley, O Death!
User avatar
Chakravanti
 
Posts: 3345
Joined: Sat Aug 29, 2009 3:38 am

Re: Linux Clients and Sound

Postby loftar » Sun Jun 13, 2010 8:39 pm

The problem arises because you're using a sound card that isn't capable of stream multiplexing in hardware (most Intel HDA-compatible cards are like that, and most mobo-integrated cards are Intel HDA-compatible), and because Sun's Java uses ALSA for playback, and ALSA implements no software multiplexing by default. God knows why, because it is capable of software multiplexing -- it just needs to be enabled manually. You'll be able to Google methods for enabling it.

One of the purposes of PulseAudio is, indeed, to implement software multiplexing. Unfortunately, Sun's Java doesn't use it.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Linux Clients and Sound

Postby notacunt » Thu Jul 08, 2010 12:45 pm

The solution is to use the pulse audio oss wrapper, for example if you use the script 'run.sh' in the game directory to start the game then run
Code: Select all
padsp run.sh


If this doesnt work try using the absolute file path:
Code: Select all
padsp /home/user/games/haven/run.sh


Reference: http://www.tuxyturvy.com/blog/index.php ... Audio.html
User avatar
notacunt
 
Posts: 31
Joined: Mon Jul 05, 2010 1:33 pm


Return to Bugs

Who is online

Users browsing this forum: Claude [Bot] and 0 guests