Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CF: Better sound support



Hi,

Current sound support in Crossfire client is very broken. Especially the
OSS volume setting.
Mixer should never be used for that - it is for user to set his
preferences about volume of different sound sources.
Now it is practically imposible to play crossfire with sounds and listen
CD music, from CD-ROM drive.
The other thing is, that sounds are queued, and played one after one. So
after killing several monsters, sounds can still be heard for several
seconds.

I tried to improve it, so I wrote a sound server for crossfire client,
and patched crossfire to use it.
It doesn't work as it should yet, but even now it is more usable, than
native sound support for me.

My sound server uses ALSA library/drivers, as they have much nicer API
than OSS - and better drivers for my sound card :-)

But patching it for OSS support should not be difficult.

The server is able to play several sounds simultaneously, but it doesn't
count them now, so it can be possibly "overloaded", But i didn't noticed
that problem.

It still has some problems with stereo. In fact it seems stereo format
is not set properly.

I will probably be fixing it tommorow, but I have attached current
version for anyone interested.

Greets,
      Jacek
-- 
+---------+--------------------------------------------------------+
!      ,  !            Jacek Konieczny, Gliwice, Poland            !      
! Jajcus  !   email: jajcus@zeus.polsl.gliwice.pl, jacek@kde.org   !
!         ! ICQ# 7149127                           WWW: none (yet) !
+---------+--------------------------------------powered-by-Linux--+

client-sound.patch.gz