.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old October 19th, 2006, 08:40 AM

Nostromo Nostromo is offline
Private
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Nostromo is on a distinguished road
Default 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

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 ...
Reply With Quote
  #2  
Old October 19th, 2006, 04:31 PM
Johan K's Avatar

Johan K Johan K is offline
Brigadier General
 
Join Date: Aug 2003
Location: Mictlan
Posts: 1,767
Thanks: 12
Thanked 165 Times in 22 Posts
Johan K is on a distinguished road
Default 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.
__________________
http://www.illwinter.com
Reply With Quote
  #3  
Old October 19th, 2006, 04:55 PM

Nostromo Nostromo is offline
Private
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Nostromo is on a distinguished road
Default 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:

Code:

[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...



Only the client (dom3) crashes.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.