Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: jur on June 09, 2010, 07:54:03 PM

Title: 3.x dreamchess: problem with sdlmixer
Post by: jur on June 09, 2010, 07:54:03 PM
I have alsa installed and it works fine, but I can't run dreamchess: it complains about sdlmixer not being able to load move1.wav.
Title: Re: 3.x dreamchess: problem with sdlmixer
Post by: Arslan S. on June 10, 2010, 02:32:06 AM
just did a base test no problem here
Title: Re: 3.x dreamchess: problem with sdlmixer
Post by: jur on June 20, 2010, 08:44:11 PM
Repeated the test from base, same problem. Which sound do you use?

Code: [Select]
tc@box:~$ dreamchess
sh: dreamchess: not found
tc@box:~$ loadapp dreamchess
libmxml.tcz: OK
libmad.tcz: OK
SDL.tcz: OK
dreamchess.tcz: OK
tc@box:~$ dreamchess
DreamChess v0.2.0 (r577)
sdlmixer.c:93: error: unable to open audio
sdlmixer.c:59: error: failed to load move1.wav
tc@box:~$ aplay /usr/local/share/dreamchess/sounds/move1.wav
Playing WAVE '/usr/local/share/dreamchess/sounds/move1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
tc@box:~$


Title: Re: 3.x dreamchess: problem with sdlmixer
Post by: Arslan S. on June 21, 2010, 12:59:27 AM
alsa

i really can't produce your error can you try with a different game that depends on SDL to see if problem is with SDL ?
Title: Re: 3.x dreamchess: problem with sdlmixer
Post by: curaga on June 21, 2010, 05:45:27 AM
If you have music playing or such, could be that SDL tries OSS sound first and that fails with alsa's OSS emulation.

export SDL_AUDIODRIVER=alsa
dreamchess
Title: Re: 3.x dreamchess: problem with sdlmixer
Post by: jur on June 21, 2010, 09:01:42 AM
I tried the export idea, that had no effect.

Fiddled around with alsa a bit, making sure it is started via alsasound, no effect.

I tried out pinball which depends on SDL and although pinball plays, there is no sound. Playing sounds manually via aplay or vlc or something similar works. It looks like it's something to do with SDL. I'll reload it just in case.

Added: Reloading SDL had no effect.