-Use integer instead of floating-point calculations to determine if pillar-boxing or letter-boxing should be used.

git-svn-id: http://odamex.net/svn/root/trunk@4491 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Rewrite S_AdjustSoundParams for both vanilla and ZDoom versions.
-Fix incorrect behavior for level 8 sound effects. co_level8soundfeature now works correctly for both vanilla and ZDoom sound curves.

git-svn-id: http://odamex.net/svn/root/trunk@4492 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Clean up S_AdjustSoundParams a bit more.

git-svn-id: http://odamex.net/svn/root/trunk@4493 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Add start_time field to channel_t for sounds and modify S_CompareSounds to give precedence to more recent sounds when sorting.
-Refactor S_GetChannel, S_StartSound and S_StopChannel.
-Remove the client CVAR snd_timeout as it was only introduced as a workaround for bug 612.
-Fixes problems of sounds being cut off when the player fires the plasma rifle.

git-svn-id: http://odamex.net/svn/root/trunk@4494 b0bcef46-2027-0410-bd56-ab726e9a1d04
-I_StartSound should return an invalid channel number (-1) if sound has not yet been initialized instead of returning 0 (a valid channel number).

git-svn-id: http://odamex.net/svn/root/trunk@4495 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Remove sfxinfo_struct::usefulness, which is designed to track how many instances of a sound are in use and then periodically free unused sounds. The code to handle cleaning up unused sounds hasn't been in use for years.

git-svn-id: http://odamex.net/svn/root/trunk@4496 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Adjust the sound priority scheme to always place sounds make by consoleplayer higher than other non-interface/announcer sounds.
-Play only one instance of a particular announcer sound at a time. This should help in instances where a player picks up a flag, drops it, and a teammate picks it up again within a short timeframe.

git-svn-id: http://odamex.net/svn/root/trunk@4497 b0bcef46-2027-0410-bd56-ab726e9a1d04
-Fix server compilation issue.

git-svn-id: http://odamex.net/svn/root/trunk@4498 b0bcef46-2027-0410-bd56-ab726e9a1d04