WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 3.x dreamchess: problem with sdlmixer  (Read 3050 times)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
3.x dreamchess: problem with sdlmixer
« 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.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: 3.x dreamchess: problem with sdlmixer
« Reply #1 on: June 10, 2010, 02:32:06 AM »
just did a base test no problem here

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: 3.x dreamchess: problem with sdlmixer
« Reply #2 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:~$


« Last Edit: June 20, 2010, 08:49:22 PM by jur »

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: 3.x dreamchess: problem with sdlmixer
« Reply #3 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 ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: 3.x dreamchess: problem with sdlmixer
« Reply #4 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
The only barriers that can stop you are the ones you create yourself.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: 3.x dreamchess: problem with sdlmixer
« Reply #5 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.
« Last Edit: June 21, 2010, 09:09:00 AM by jur »