You are not logged in.

#1 2006-02-07 03:20:50

nutnoob
Member
Registered: 2005-03-31
Posts: 14

[game][solved] CUBE sound and fullscreen problem

hi.
I play cube 2005_08_29-4 from [community]
I use stack kernel 2.6.15-ARCH.

1st problem, the cube documentation (file:///opt/cube/docs/config.html) says that -t option starts the game windowed (not fullscreen). But it starts the game fullscreened anyways.

Can anyone play cube windowed?

2nd problem, I get this:
init: sound
sound init failed (SDL_mixer): No available audio device

I have sb live! that works fine with mplayer...i.e. it plays sounds ...but i don't get the error..

Does anyone know how to troubleshoot the sound problem?

Thank you.

Offline

#2 2006-02-07 06:27:39

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: [game][solved] CUBE sound and fullscreen problem

The sounds would be fixed by installing sdl, and modprobe'ing snd-pcm-oss and snd-mixer-oss.


·¬»· i am shadowhand, powered by webfaction

Offline

#3 2006-02-07 06:45:27

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: [game][solved] CUBE sound and fullscreen problem

Try 'aoss cube', works for me.

Offline

#4 2006-02-07 06:57:57

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [game][solved] CUBE sound and fullscreen problem

For the windowed problem: Sorry, it's my fault :oops: The /usr/bin/cube script don't accept any arguments. I will fix that.

For the sound: are you using a sound deamon (other than arts or esd) or any other app that would use the sound card and cause a conflict? Sometime when I start it I don't get sound. In this case, I just quit and restart it. :?

Offline

#5 2006-02-07 14:08:53

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: [game][solved] CUBE sound and fullscreen problem

1) cube -t starts windowed here too...

2) If you have a sound daemon running and you don't have hardware mixing, I suggest you to setup dmix - it works fine here. Just create ~/.asoundrc (as your user) and enter this in it:

pcm.dsp0 {
    type plug
    slave.pcm "dmix"
}

ctl.mixer0 {
    type hw
    card 0
}

Save and re-login (to make sure everything that uses ALSA reads the asoundrc), sound should now work.

Offline

#6 2006-02-07 22:53:56

nutnoob
Member
Registered: 2005-03-31
Posts: 14

Re: [game][solved] CUBE sound and fullscreen problem

The sounds would be fixed by installing sdl, and modprobe'ing snd-pcm-oss and snd-mixer-oss.

i do have sdl and sdl_mixer

lsmod|grep oss shows snd_pcm_oss..etc loaded

Try 'aoss cube', works for me.

not for me.

Snowman, why are you suspending artsd and esd (in /usr/bin/cube)?

you can do ./cube_client $@ to pass arguments...

And how did you compile it from source??
I downloaded cube_2005_08_29_src.zip and did make in ./cube_source/src .
But it doesn't build.
From sound.cpp file:

        if(Mix_OpenAudio(SOUNDFREQ, MIX_DEFAULT_FORMAT, 2, soundbufferlen)<0)

        {

            conoutf("sound init failed (SDL_mixer): %s", (size_t)Mix_GetError());

            nosound = true;

        };

That's the line that prints the error message...
So, Mix_OpenAudio fails..
But i can't find what is MIX_DEFAULT_FORMAT ..

jaboua, sound still doesn't work..

Offline

#7 2006-02-08 04:35:39

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [game][solved] CUBE sound and fullscreen problem

When I don't suspend artsd and esd, I don't get any sound. Probably conflicts with the sound card.
Some googling gave me this:
http://wouter.fov120.com/cube/forum.php … 0&start=25
Check from post  #41. It seems that "a workaround is to set the sound volumes in autoexec to 0".  Try also to start cube_client directly (without suspending the sound daemons).

If you want to build it, check my cube-i810 PKGBUILD in AUR. You can comment the patch line if you don't use a i810 video card.

Offline

#8 2006-02-09 18:09:47

nutnoob
Member
Registered: 2005-03-31
Posts: 14

Re: [game][solved] CUBE sound and fullscreen problem

I found I have:
export SDL_AUDIODRIVER=alsa
in .zshrc (my shell config file)
After I unset the variable, cube worked with sounds...!!

Offline

#9 2006-02-09 20:28:55

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [game][solved] CUBE sound and fullscreen problem

Cool.  I'll just have to fix the scripts then.

Offline

Board footer

Powered by FluxBB