I can't get dom3 to output sound in Linux. Note that the rest of the system (e.g., mplayer etc.) does work with sound.
Environment: Gentoo Linux, Kernel 2.6.17.7, KDE 3.5.5, ALSA 1.0.13, arts from KDE 3.5.5
1) dom3 default sound via arts: Crash
Code:
(/local/opt/dominions3) 506 % ./dom3
*** glibc detected *** ./dom3: free(): invalid pointer: 0x0be346d8 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7c7b73f]
/lib/libc.so.6(__libc_free+0x8b)[0xb7c7c26b]
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6(_ZdlPv+0x21)[0xb7ab3af1]
/usr/kde/3.5/lib/libmcop.so.1(_ZN4Arts11readTypeSeqINS_12InterfaceD efEEEvRNS_6Bu
fferERSt6vectorIT_SaIS5_EE+0x1e1)[0xaaff8c31]
[0xc49683c]
2) dom3 sound via legacy OSS: ALSA error
Code:
(/local/opt/dominions3) 508 % ALSA_OSS_DEBUG=1 aoss ./dom3 -o
Opened PCM dsp0 for stream 0 (result = -2)
Opened PCM default for stream 0 (result = 0)
PrivoxyWindowOpen("/dev/dsp", 2049, 135657831) -> 13
close(13) -> 0
Opened PCM dsp0 for stream 0 (result = -2)
Opened PCM default for stream 0 (result = 0)
PrivoxyWindowOpen("/dev/dsp", 1, -1075127912) -> 13
ioctl(13, SNDCTL_DSP_STEREO, 0xbfead988[1]) -> [1]
ioctl(13, SNDCTL_DSP_SETFMT, 0xbfead984[16]) -> [16]
ioctl(13, SNDCTL_DSP_SETFRAGMENT, 0xbfead980[2000c])
ioctl(13, SNDCTL_DSP_SPEED, 0xbfead97c[22050]) -> [22050]
dsp ioctl error = -22
SNDCTL_DSP_SPEED: Invalid argument
Något gick fel!
sound error
Något gick fel!
sound error
close(13) -> 0
zsh: abort ALSA_OSS_DEBUG=1 aoss ./dom3 -o
Any ideas on how to fix this would be appreciated ...