Re: [crossfire] Sound support on GTKv2

2013-09-09 Thread Kevin Zheng
Hi there,

On 09/09/2013 17:33, mail-lists+cf...@dogphilosophy.net wrote:
 I've been meaning to reply to this thread:
 
 Other than at one point years ago managing to get a few inconsistent chirp 
 noises out of the sound system, I've never managed to get it to work. 
 However, if it's being opened up and worked on again, I'd definitely be 
 willing to do some work on sound-effects and related assets.

Recently I committed a working sound server using the SDL_mixer library.
It works for me as well as another developer, and further testing is
very welcome.

At the moment the sound server tries to look for the sounds folder in
share/crossfire-client/sounds, which you can symlink to wherever your
sound directory is. Be sure to get the latest version of the sounds from
SVN, though, as the tarballs will no longer work.

Let this suffice as an open call for testing. If anyone encounters any
difficulties feel free to contact me/post to the list.

Thanks,
Kevin Zheng
___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire


Re: [crossfire] Sound support on GTKv2

2013-09-05 Thread Mark Wedel

On 09/ 2/13 09:53 AM, Kevin Zheng wrote:

Hi there,

A big element missing from Crossfire is sound. While sound support has
existed for quite a long time, it has consistently failed to work on
newer installations. In addition, sound files have remained untouched
for many releases. I intend to fix this.

A quick glance through the client sound sources show that a great deal
of effort has been put through to make it work with several major sound
systems out there. While supporting many sound systems is good, it has
become overly cumbersome and makes the source hard to work with.

For this reason, I propose that sound support should be discontinued for
every system except for SDL_mixer. SDL_mixer is a high-level library
that supports ALSA, OSS, and many other lower-level sound systems.
SDL_mixer also supports OGG, which enables us to use a higher-level
sound format other than the raw PCM file we use today. Hopefully this
will make sound contributions easier, too.

I would like to be able to start working on the code changes in the very
near future. Questions/comments/hate mail?


 I have no objection, but at the same time, since most of the code is #ifdef if 
the sound system exists, there isn't as a compelling reason to remove the old 
ones vs just adding a new one, and making it first choice if multiple options 
are found.


 I can't remember all the history of why all those other sound systems got 
added support - it seems that SDL has existed for near as long as the client 
has, so I don't know if it has limitations on certain systems.


 Of course the problem is also whether to target SDL 1.x or SDL 2.x - not sure 
how much the API has changed.  Clearly 2.x would be desired long term, but short 
term, I'm not sure how many people would be running SDL 2.x, so if only that was 
supported, it might remove sound support for a lot of people.


 OTOH, sound was never a key part of the game, so if certain people do not have 
sound support, it would hardly be the end of the world.


___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire


[crossfire] Sound support on GTKv2

2013-09-02 Thread Kevin Zheng
Hi there,

A big element missing from Crossfire is sound. While sound support has
existed for quite a long time, it has consistently failed to work on
newer installations. In addition, sound files have remained untouched
for many releases. I intend to fix this.

A quick glance through the client sound sources show that a great deal
of effort has been put through to make it work with several major sound
systems out there. While supporting many sound systems is good, it has
become overly cumbersome and makes the source hard to work with.

For this reason, I propose that sound support should be discontinued for
every system except for SDL_mixer. SDL_mixer is a high-level library
that supports ALSA, OSS, and many other lower-level sound systems.
SDL_mixer also supports OGG, which enables us to use a higher-level
sound format other than the raw PCM file we use today. Hopefully this
will make sound contributions easier, too.

I would like to be able to start working on the code changes in the very
near future. Questions/comments/hate mail?

Thanks,
Kevin Zheng
___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire