1

Topic: [Linux] Sound under teewars

Hello all,
I would like to know, what libs do you use to make sound under linux.
I try to use both Teamspeak and Teewars, and it don't work.
I have try Mumble too, and it don't work again.

So I would like to know it please.
Thanks you a lot.
Ciol

www.teewars.Fr the french community

2

Re: [Linux] Sound under teewars

We uses PortAudio, which uses ALSA.

Languages shapes the way we think, or don't.

3 (edited by Ciol 2007-12-22 15:50:18)

Re: [Linux] Sound under teewars

Ok thanks you very much

Did someone, make it work?

www.teewars.Fr the french community

4 (edited by apax 2007-12-22 21:46:13)

Re: [Linux] Sound under teewars

I think what Coil means, is what dependencies teewars needs to make sound function properly when running under Linux. I'm having problems with this as well, but I'm not really sure it's a dependency related problem.. If you have a look at http://ix.teewars.com/trac/wiki/CompilingEverything you can see the dependencies for the game. In my case, they are fulfilled.

I brought this up in the irc channel, but I hadn't the time to finish what I started, so I'll guess I'm just going to hijack this thread! I guess more people than me are having problems with no sound in Linux?

Output when starting the program:

[476d60ae][client]: starting...
[476d60ae][config/load]: loading /home/apax/.teewars/default.cfg
[476d60ae][gfx]: depthbits = 24
[476d60af][snd]: device #0 name='NVidia CK804: NVidia CK804 (hw:0,0)'
[476d60af][snd]: device #1 name='NVidia CK804: NVidia CK804 - MIC ADC (hw:0,1)'
[476d60af][snd]: device #2 name='NVidia CK804: NVidia CK804 - IEC958 (hw:0,2)'
[476d60af][snd]: device #3 name='front'
[476d60af][snd]: device #4 name='iec958'
[476d60af][snd]: device #5 name='spdif'
[476d60af][snd]: device #6 name='rate_convert'
[476d60af][snd]: device = 2
[476d60af][game]: load skin bluestripe
[476d60af][game]: load skin pinky
...

It really seems to load properly, but there's no sound in the game.. I have tried building 0.3.1 from source with bam, and I also tried the pre-built version. No success =/
If it's of any concern, I'm running Gentoo Linux, with a 2.6.22 kernel.

5

Re: [Linux] Sound under teewars

Well, the things that can happen is:
* The wrong device is chosen by default
* The correct device is chosen but is currently not availible

I am not a linux sound expert, but here might be a problem if your alsa driver does not support multiple connecting applications (mixing). Running a soundserver might also give you problems. If you know how to make PortAudio select from several possible output types (oss/alsa/arts/gstreamer etc.) please submit a patch.

Languages shapes the way we think, or don't.

6

Re: [Linux] Sound under teewars

I'm not skilled enough to make a patch, but I made some "research".. I tried compiling a testapp from portaudios repository, which for some reason segfaulted when running it.. But a restart of the sound system (/etc/init.d/alsasound restart) and immediately running the testapp afterwards resulted success, and applying the same method on teewars has the same result: sound works. BUT playing a mp3 song in a media player, and trying out teewars again makes the sound go away =/

7

Re: [Linux] Sound under teewars

Hello thanks you for your answer.
I have the same return in my console. The device selected by defaut is the good one, because I heard sound with it with some other software.
Well I don't have other idea for the moment.
I keep looking for a solution than you.

www.teewars.Fr the french community

8 (edited by stick 2008-02-17 20:52:21)

Re: [Linux] Sound under teewars

I do not have sound either, mine output (using 0.4.0-dev version):

[47b784a8][snd]: device #0 name='HDA Intel: AD198x Analog (hw:0,0)'
[47b784a8][snd]: device #1 name='HDA Intel: AD198x Digital (hw:0,1)'
[47b784a8][snd]: device #2 name='front'
[47b784a8][snd]: device #3 name='surround40'
[47b784a8][snd]: device #4 name='surround51'
[47b784a8][snd]: device #5 name='surround71'
[47b784a8][snd]: device #6 name='iec958'
[47b784a8][snd]: device #7 name='spdif'
[47b784a8][snd]: device = 0
Expression 'parameters->channelCount <= maxChans' failed in '/home/stick/work/svn/teewars/src/engine/external/portaudio/pa_linux_alsa.c', line: 776
Expression 'ValidateParameters( outputParameters, hostApi, StreamDirection_Out )' failed in '/home/stick/work/svn/teewars/src/engine/external/portaudio/pa_linux_alsa.c', line: 1771

Edit: I found out that I have sound, when there is no other app using soundcard.

9

Re: [Linux] Sound under teewars

I am currently using GPLed version of OSS sound system by 4Front Tech., and am unable to produce ingame sound nor make the game work with ALSA emulation (through libsalsa, game segfaults on start). Is there any way I could play the game with sound, or any chances of having an OpenAL sound system? Thank you...