logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Linux Sound issues (Re: 227i found and fixed bugs) (Read 6066 times)
azn
Junior Member
**
Offline


Oldunreal member

Posts: 89
Location: W. Yorkshire, UK
Joined: Jan 22nd, 2009
Gender: Male
Linux Sound issues (Re: 227i found and fixed bugs)
Apr 19th, 2013 at 4:40pm
Print Post  
I have a problem on linux. Hmm, what info can I provide... Using linux 3.8.7, and as it's sound related. My alsa and pulseaudio packages versions are:

alsa-lib 1.0.27-1
alsa-plugins 1.0.27-1
alsa-utils 1.0.27-4
pulseaudio-alsa 2-2


Still, this problem was still there before i switched to pulseaudio. Also, i don't remember what it was but there's a solution for oss apps to work with pulseaudio and as it worked with ut99 it doesn't with 227i. Still, it wasn't working 100% perfect with ut99 so i would really prefer to use alsa way with u1.

I know it's sound related as -nosound parameter solves the problem.

In my UnrealLinux.ini file i have:

AudioDevice=ALAudio.ALAudioSubsystem
« Last Edit: Apr 20th, 2013 at 7:28am by Smirftsch »  

Nothing interesting so far Smiley
Back to top
 
IP Logged
 
GreatEmerald
Oldunreal MasterPoster
*
Offline


The Great Emerald

Posts: 5361
Location: Vilnius, Lithuania
Joined: May 21st, 2007
Gender: Male
Re: 227i found and fixed bugs
Reply #1 - Apr 19th, 2013 at 9:10pm
Print Post  
azn wrote on Apr 19th, 2013 at 4:40pm:
I have a problem on linux. Hmm, what info can I provide... Using linux 3.8.7, and as it's sound related. My alsa and pulseaudio packages versions are:

alsa-lib 1.0.27-1
alsa-plugins 1.0.27-1
alsa-utils 1.0.27-4
pulseaudio-alsa 2-2


Still, this problem was still there before i switched to pulseaudio. Also, i don't remember what it was but there's a solution for oss apps to work with pulseaudio and as it worked with ut99 it doesn't with 227i. Still, it wasn't working 100% perfect with ut99 so i would really prefer to use alsa way with u1.

I know it's sound related as -nosound parameter solves the problem.

In my UnrealLinux.ini file i have:

AudioDevice=ALAudio.ALAudioSubsystem


Ack, you're posting in the wrong thread and in the wrong forum. Can someone move this?

As for your question, what is the problem, exactly?
  
Back to top
WWW  
IP Logged
 
azn
Junior Member
**
Offline


Oldunreal member

Posts: 89
Location: W. Yorkshire, UK
Joined: Jan 22nd, 2009
Gender: Male
Re: 227i found and fixed bugs
Reply #2 - Apr 20th, 2013 at 4:36am
Print Post  
The problem is the game doesn't run without -nosound. It crashed. I would post the log messages still I wait until it gets moved to the right place as you said it's the wrong thread.
  

Nothing interesting so far Smiley
Back to top
 
IP Logged
 
William(Rainman)
God Member
*****
Offline


Pancaking Skaarj Troopers
with the Cicada.

Posts: 987
Location: Noork's Elbow
Joined: Jul 25th, 2011
Gender: Male
Re: 227i found and fixed bugs
Reply #3 - Apr 20th, 2013 at 4:50am
Print Post  
azn wrote on Apr 20th, 2013 at 4:36am:
The problem is the game doesn't run without -nosound. It crashed.


I don't Understand. Your game won't Run unless there is No-Sound, so if there is Sound the game Crashes but if there isn't Sound then the game runs Perfectly?
  

Back to top
WWW  
IP Logged
 
azn
Junior Member
**
Offline


Oldunreal member

Posts: 89
Location: W. Yorkshire, UK
Joined: Jan 22nd, 2009
Gender: Male
Re: 227i found and fixed bugs
Reply #4 - Apr 20th, 2013 at 6:01am
Print Post  
Yeah, that's what I just wrote.
  

Nothing interesting so far Smiley
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7970
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: 227i found and fixed bugs
Reply #5 - Apr 20th, 2013 at 7:20am
Print Post  
I leave this topic here for now, probably it should be in Linux section, but since this is also a 227 problem...

There are a couple of ways to approach this.

First you should try if this is an OpenAL or FMod trouble. Often FMod behaves a little bit more "friendly" especially with onboard or notebook soundcards.
Be sure to have FMod library on your system, ,libfmod-3.75.so and symlinked to libfmod.so, is needed. This is the case for BOTH OpenAL and FModAudioDrv. In your help directory there is a file called lin_convenience_libs.tar.bz2 which should contain all needed libs which may or may not be provided by your hostsystem already. If in question the needed files can be put into the System directory from there.

The next step is to see if its correctly initialized and identifying existing devices on your PC. To do so set
ProbeDevicesOnly=True and start Unreal up. What this does is simply checking what is there and prints the result out.
Either use "./UnrealLinux.bin -log" and check the console output or let Unreal run a while to get a full UnrealLinux.bin.log (it requires some time to get the buffered output in the logfile, so just starting up and exiting will probably not log the part you need).

You will get an output like this - in this case OpenAL is used and will create an output for OpenAL and FMod, while the procedure is the same if using FMod alone:
Code
Select All
Bound to ALAudio.so
OpenAL: ALDEVICES found 1:ALSASoftwareondefault
OpenAL: ALDEVICES found 2:ALSASoftwareonHDAIntelMID
OpenAL: ALDEVICES found 3:ALSASoftwareonHDANVidia
OpenAL: ALDEVICES found 4:OSSSoftware
OpenAL: ALDEVICES found 5:WaveFileWriter
OpenAL: Setting FMODOutput to ALSA
OpenAL: FMOD device found 0:default
OpenAL: FMOD device found 1:cards
OpenAL: FMOD device found 2:front
OpenAL: FMOD device found 3:rear
OpenAL: FMOD device found 4:centerlfe
OpenAL: FMOD device found 5:side
OpenAL: FMOD device found 6:surround40
OpenAL: FMOD device found 7:surround41
OpenAL: FMOD device found 8:surround50
OpenAL: FMOD device found 9:surround51
OpenAL: FMOD device found 10:surround71
OpenAL: FMOD device found 11:iec958
OpenAL: FMOD device found 12:spdif
OpenAL: FMOD device found 13:hdmi
OpenAL: FMOD device found 14:dmix
OpenAL: FMOD device found 15:dsnoop
OpenAL: FMOD device found 16:modem
OpenAL: FMOD device found 17:phoneline
OpenAL: FMOD device found 18:hw
OpenAL: FMOD device found 19:plughw
OpenAL: FMOD device found 20:plug
OpenAL: FMOD device found 21:shm
OpenAL: FMOD device found 22:tee
OpenAL: FMOD device found 23:file
OpenAL: FMOD device found 24:null
9097.5ms Loading: Package ALAudio
 


These are available devices which can be used to set it up. Note that not every device will work as output device and also note that if it is crashing there already the initialization failed and the problem most likely is in missing libraries or their dependencies.
Usually the "default" devices are working flawlessly and can be entered into the section:

ALDevices=ALSASoftwareondefault
and
FMODDevices=default

The output for FMod again differs depending on the used output, which again can be: DefaultDevice/ALSA/OSS/ESD in Linux.
In the upper example FMODOutputs=ALSA was used.

If one of these is not giving any output in this procedure it is not working for any reason on your system.

You can use the following outputs in 227i:
AudioDevice=FMODAudioDrv.FMODAudioDevice
which is for FMod3.75

AudioDevice=ALAudio.ALAudioSubsystem
which is using OpenALSoft for sound and FMod3.75 for music

AudioDevice=SwFMOD.SwFMD
SwFMOD Experimental version of FModEX for Unreal.  This one doesn't have a "ProbeDevicesOnly" yet but is surely worth a try too. Maybe needs some bugfixes yet though.

So, I hope I didn't miss anything and I feedback is very welcome.
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
azn
Junior Member
**
Offline


Oldunreal member

Posts: 89
Location: W. Yorkshire, UK
Joined: Jan 22nd, 2009
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #6 - Apr 21st, 2013 at 1:26am
Print Post  
Ok, I installed the fmod package, guess in Archlinux it's fmodex, it's in version 4.44.01. Also I copied libfmod libs from this archive in Help folder to the System directory, no difference.

I tested possible AudioDevice options and game runs without -nosound option with two of them:

AudioDevice=FMODAudioDrv.FMODAudioDevice

and

AudioDevice=SwFMOD.SwFMOD

And about logs, here are log with these settings:

AudioDevice=FMODAudioDrv.FMODAudioDevice
ALDevices=DefaultDevice
FMODOutputs=DefaultDevice


Here're the results:

Code
Select All
Bound to FMODAudioDrv.so
FMOD: Setting FMODOutput to ALSA
FMOD: device found 0:default
FMOD: device found 1:cards
FMOD: device found 2:sysdefault
FMOD: device found 3:front
FMOD: device found 4:rear
FMOD: device found 5:centerlfe
FMOD: device found 6:side
FMOD: device found 7:surround40
FMOD: device found 8:surround41
FMOD: device found 9:surround50
FMOD: device found 10:surround51
FMOD: device found 11:surround71
FMOD: device found 12:iec958
FMOD: device found 13:spdif
FMOD: device found 14:hdmi
FMOD: device found 15:dmix
FMOD: device found 16:dsnoop
FMOD: device found 17:modem
FMOD: device found 18:phoneline
FMOD: device found 19:hw
FMOD: device found 20:plughw
FMOD: device found 21:plug
FMOD: device found 22:shm
FMOD: device found 23:tee
FMOD: device found 24:file
FMOD: device found 25:null
FMOD: device found 26:default
FMODOutput Enum 3, Device Enum 0, Speaker Enum 4, OutputRate Enum 5 



Still, the game runs but sound is like muted, I hear nothing. In options volume bars are set almost to highest position so the problem is somewhere else I guess.
  

Nothing interesting so far Smiley
Back to top
 
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7970
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #7 - Apr 21st, 2013 at 7:42am
Print Post  
So it currently looks like this- OpenAL doesn't work probably because either OpenALSoft or Alut is missing, otherwise you would get a log there too, libOpenAL.so and libalut.so, while it seems - did I forget to make a symlink in the convenience libs to libalut.so? If so, please make a symlink to it with libalut.so, maybe this fixes it already.

The log of FMod however shows clearly that the initialization works and FMod is running- so the output must be blocked for some reason.
I remember some reported issues that a daemon or kde/gnome service, or even PulseAudio was the cause for it in some distro, but I don't know more details.

If your UT installation works with OSS you could try to set FMODOutputs=OSS and probe again, probably you will have to set FMODDevices=devdsp after that, but better you probe first. Whatever blocks ALSA may not block OSS as well.

SwFMod is using FModEX while FModAudio is using version 3.75 yet.
In any case I think its the same reason that neither FMod nor FModEX give any output.

  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
GreatEmerald
Oldunreal MasterPoster
*
Offline


The Great Emerald

Posts: 5361
Location: Vilnius, Lithuania
Joined: May 21st, 2007
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #8 - Apr 21st, 2013 at 10:03am
Print Post  
Hmm, in the output list I'd expect to see a pulse device, but apparently it's not there.
Either way, one thing to look at would be to see if you don't have the sound simply muted. It happens, sometimes. Check if pavucontrol shows Unreal as something that outputs audio or not, too.

And yes, do give us a log of what happens with OpenAL activated, too.
  
Back to top
WWW  
IP Logged
 
azn
Junior Member
**
Offline


Oldunreal member

Posts: 89
Location: W. Yorkshire, UK
Joined: Jan 22nd, 2009
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #9 - Apr 21st, 2013 at 7:43pm
Print Post  
Hmm, I found the solution, at first I installed freealut package, it is in version 1.1.0.

Next I copied these files from lin_convenience_libs.tar.bz2:

libopenal.so.1.12.854
libalut.so.0.1.0
libfmod-3.75.so
libfmod.so
libopenal.so
libopenal.so.1
libalut.so.0
libalut.so.0.1


My config settings are now like:

AudioDevice=ALAudio.ALAudioSubsystem
ALDevices=DefaultDevice


Guess FMODOutputs= doesn't really matter now as I don't use FMOD but it's set to:

FMODOutputs=DefaultDevice

Still, guess only copying these files was important as now I can remove the freealut package and it still works fine.

------------

Strange, I passed the first level on mission pack, and started the second and I heard no fast music..., even in place i remembered it was this kind of music.

Hmm, with my current settings I hear only like nature sounds as music all the time...

When I use FMOD my sound is muted so i heat nothing but I also tried to use ALAudio but with these settings:

ALDevices=ALSASoftware
FMODOutputs=ALSA


Guess in the first case sound was really bad quality and my PC freezed. In the second case as far as I remember I have heard more like a music on Mission Pack intro animation but the game freezed as well.
« Last Edit: Apr 21st, 2013 at 10:18pm by azn »  

Nothing interesting so far Smiley
Back to top
 
IP Logged
 
GreatEmerald
Oldunreal MasterPoster
*
Offline


The Great Emerald

Posts: 5361
Location: Vilnius, Lithuania
Joined: May 21st, 2007
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #10 - Apr 21st, 2013 at 10:26pm
Print Post  
OpenAL can play only sounds. FMOD can play both sounds and music. If you use OpenAL, then you actually use OpenAL for sounds and still use FMOD for music. So to get the music to play, you need to fix the situation with FMOD.
  
Back to top
WWW  
IP Logged
 
azn
Junior Member
**
Offline


Oldunreal member

Posts: 89
Location: W. Yorkshire, UK
Joined: Jan 22nd, 2009
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #11 - Apr 22nd, 2013 at 1:02am
Print Post  
I cannot make this FMOD working, still no music. As least I found these lines, probably with -log parameter:

Code
Select All
OpenAL: ALDEVICES found 1:PulseAudioSoftware
OpenAL: ALDEVICES found 2:ALSASoftware 



So i decided to use:

ALDevices=PulseAudioSoftware

And I have much better quality sounds. Hope someone will have any idea how to fix the music.

-------------

New information. When I set FMODOutputs=ALSA I got this error message, it's strange because sometimes i get it and sometimes I don't:

Code
Select All
OpenAL: Invalid music format in Music flyby.flyby 



--------------------

I also tried to use:

AudioDevice=ALAudio.ALAudioSubsystem
ALDevices=ALSASoftware
FMODOutputs=ALSA


And again, usually game gives me message like:

Code
Select All
OpenAL: Failed, trying (again) default device 



And sometimes it changes my:

ALDevices=ALSASoftware

to:

ALDevices=DefaultDevice

I'm starting to get stupid here Cheesy

-------------

btw. don't know if it matters but I decided to symlink openal libs to ones that're installed on my system(newer version) instead from package in Help directory.
  

Nothing interesting so far Smiley
Back to top
 
IP Logged
 
GreatEmerald
Oldunreal MasterPoster
*
Offline


The Great Emerald

Posts: 5361
Location: Vilnius, Lithuania
Joined: May 21st, 2007
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #12 - Apr 22nd, 2013 at 5:47am
Print Post  
azn wrote on Apr 22nd, 2013 at 1:02am:
btw. don't know if it matters but I decided to symlink openal libs to ones that're installed on my system(newer version) instead from package in Help directory.


Generally it shouldn't. But you could try both ways. Though overall it seems that OpenAL works perfectly fine for you anyway.

So what happens when you use SwFMOD?

Do you have both 32-bit and 64-bit packages of all these installed?

Also, you can try FMODDevices=sysdefault. Or FMODOutputs=ESD (and have pulseaudio-esound-compat or so installed, again both versions).
  
Back to top
WWW  
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 7970
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #13 - Apr 22nd, 2013 at 6:23am
Print Post  
did you try FMODOutputs=OSS now as well?
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
azn
Junior Member
**
Offline


Oldunreal member

Posts: 89
Location: W. Yorkshire, UK
Joined: Jan 22nd, 2009
Gender: Male
Re: Linux Sound issues (227i found and fixed bugs)
Reply #14 - Apr 22nd, 2013 at 5:24pm
Print Post  
@GreatEmerald

SwFMOD - same as with FMOD, silence. I have only 32-bit packages as I'm running 32-bit system. FMODDevices=sysdefault - figured that out by myself, no difference.

And about FMODOutputs=ESD, didn't try it, to be honest I don't want to make a bigger mess, I just want it to work normally with packages I use everyday and as I figured out, it should but from some reason, it doesn't.

@Smirftsch

FMODOutputs=OSS - same, I hear no music. Also tried running the game with "padsp ./UnrealLinux.bin", no go; no music plays.
  

Nothing interesting so far Smiley
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo