![]() |
No sound in Linux?
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 <font class="small">Code:</font><hr /><pre> (/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] </pre><hr /> 2) dom3 sound via legacy OSS: ALSA error <font class="small">Code:</font><hr /><pre> (/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 </pre><hr /> Any ideas on how to fix this would be appreciated ... |
Re: No sound in Linux?
For ALSA it looks like a bug in the oss emulation. Usually you can run oss programs with alsa without using aoss (which is the probable cause of that bug), but I don't know how it's is with gentoo. Running "./dom3 -o" with alsa works fine for me.
Does artsd run ok with other applications? It looks like it crashed. |
Re: No sound in Linux?
Thanks for the hints, I did some more testing:
1) Running ``./dom3 -o'' without aoss does work (after a fashion): My machine has two soundcards, and it was outputting to the wrong (unconnected) one. I'll now try to figure out how to redirect OSS output to the correct card. 2) As for arts: artsd is definitely running and working fine. For example, here are a few lines of output from mplayer: <font class="small">Code:</font><hr /><pre> [AO ARTS] Connected to sound server. [AO ARTS] Stream opened. [AO ARTS] buffer size: 36864 [AO ARTS] buffer size: 2048 AO: [arts] 32000Hz 2ch s16le (2 bytes per sample) Starting playback... </pre><hr /> Only the client (dom3) crashes. |
All times are GMT -4. The time now is 01:09 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.