View Issue Details

IDProjectCategoryView StatusLast Update
0002616Dwarf FortressTechnical -- Soundpublic2010-07-19 13:42
Reporteroliver Assigned ToBaughn  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSUbuntu LinuxOS Version9.10
Product Version0.31.09 
Fixed in Version0.31.11 
Summary0002616: Initializing OpenAL failed, no sound will be played (bundled libsndfile.so doesn't work, system libsndfile does)
DescriptionOn my Ubuntu 9.10 x86-64 install, with the necessary 32-bit libraries, sound is OK under 0.31.08 but fails to initialize under 0.31.09.

If I move the copy of libs/libsndfile.so shipped with .09 out of the way, then everything works fine.

oliver@flux:~/df_31_09/df_linux$ ./df
Failed to link sf_version_string
Dynamically loading the sndfile library failed, disabling sound
/usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgiogconf.so
/usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
/usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
Initializing OpenAL failed, no sound will be played
Loading bindings from data/init/interface.txt
Resetting textures

oliver@flux:~/df_31_09/df_linux$ mv libs/libsndfile.so libs/libsndfile.so.DISABLED
oliver@flux:~/df_31_09/df_linux$ ./df
Sound devices available:
ALSA Software
OSS Software
PulseAudio Software
Wave File Writer
Picking ALSA Software. If your desired device was missing, make sure you have the appropriate 32-bit libraries installed. If you wanted a different device, configure ~/.openalrc appropriately.
Perfect OpenAL context attributes GET
Loading bindings from data/init/interface.txt
Resetting textures

The system-wide libsndfile looks like this:

oliver@flux:~/df_31_09/df_linux$ ls -l /usr/lib32/libsndfile.so*
lrwxrwxrwx 1 root root 15 2009-11-14 15:02 /usr/lib32/libsndfile.so -> libsndfile.so.1
lrwxrwxrwx 1 root root 20 2009-11-14 15:02 /usr/lib32/libsndfile.so.1 -> libsndfile.so.1.0.20
-rw-r--r-- 1 root root 420372 2009-08-04 05:46 /usr/lib32/libsndfile.so.1.0.20
oliver@flux:~/df_31_09/df_linux$ ldd /usr/lib32/libsndfile.so
    linux-gate.so.1 => (0xf77c7000)
    libFLAC.so.8 => /usr/lib32/libFLAC.so.8 (0xf76ea000)
    libvorbisenc.so.2 => /usr/lib32/libvorbisenc.so.2 (0xf75f0000)
    libvorbis.so.0 => /usr/lib32/libvorbis.so.0 (0xf75c4000)
    libogg.so.0 => /usr/lib32/libogg.so.0 (0xf75bd000)
    libm.so.6 => /lib32/libm.so.6 (0xf7597000)
    libc.so.6 => /lib32/libc.so.6 (0xf7452000)
    /lib/ld-linux.so.2 (0xf77c8000)
TagsNo tags attached.

Relationships

has duplicate 0002734 resolveduser6 DF fails to load OpenAL 
related to 0002130 resolveduser6 SOUND:YES consumes excessive CPU (runaway thread?) 

Activities

solarshado

2010-07-11 03:00

reporter   ~0009927

:) at least I know how to get sound on linux now.
I was having this problem too, starting go wonder if i didn't have the right lib32 packages installed

user6

2010-07-11 10:31

  ~0009945

Still present in 31.10?

oliver

2010-07-11 15:35

reporter   ~0009966

Yes, identical behaviour in 0.31.10

Jaak

2010-07-12 00:43

reporter   ~0010008

I can confirm this on Gentoo (2.6.31, SMP, x86_64). Suggested workaround seems to fix it.

reddit

2010-07-12 01:25

reporter   ~0010009

Confirmed on Ubuntu 9.04, suggested workaround doesn't fix it as the system libsndfile is out of date.

Dawide

2010-07-13 12:46

reporter   ~0010160

When i start the game appears an error box with: "Dynamically loading the OpenAL library failed, disabling sound"

Murphy

2010-07-15 03:49

reporter   ~0010331

Using Xubuntu 10.04, in DF v31.09 sound worked fine, but 31.10 gives me the aforementioned error box.

vulcanius

2010-07-17 12:15

reporter   ~0010508

Confirming behavior on fully-updated Arch with 0.31.10, OpenAL fails to load. The suggested workaround fixes the problem.

Baughn

2010-07-19 06:07

manager   ~0010622

Solution: Don't bundle libsndfile. There's really no need for it.

Issue History

Date Modified Username Field Change
2010-07-10 21:04 oliver New Issue
2010-07-11 03:00 solarshado Note Added: 0009927
2010-07-11 10:31 user6 Note Added: 0009945
2010-07-11 15:35 oliver Note Added: 0009966
2010-07-12 00:43 Jaak Note Added: 0010008
2010-07-12 01:25 reddit Note Added: 0010009
2010-07-13 12:46 Dawide Note Added: 0010160
2010-07-15 03:49 Murphy Note Added: 0010331
2010-07-17 12:15 vulcanius Note Added: 0010508
2010-07-18 02:04 user6 Summary .09-shipped libsndfile.so does not work; using the system libsndfile does work => Initializing OpenAL failed, no sound will be played (bundled libsndfile.so doesn't work, system libsndfile does)
2010-07-18 02:04 user6 Relationship added has duplicate 0002734
2010-07-18 02:04 user6 Relationship added related to 0002130
2010-07-19 06:07 Baughn Note Added: 0010622
2010-07-19 06:07 Baughn Status new => resolved
2010-07-19 06:07 Baughn Fixed in Version => 0.31.11
2010-07-19 06:07 Baughn Resolution open => fixed
2010-07-19 06:07 Baughn Assigned To => Baughn