Update of /cvsroot/netrek/client/netrekxp/src
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv22420/src
Modified Files:
local.c sound.c
Log Message:
Converted 2 messages sounds and intro sound to higher quality to remove unwanted static.
Changed SDL audio playback from 8 to 16bits, improves sound quality in a few cases.
Bug fix to planet army count.
Index: local.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/local.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- local.c 6 Jun 2006 19:50:39 -0000 1.40
+++ local.c 9 Jun 2006 22:08:40 -0000 1.41
@@ -549,7 +549,7 @@
else
{
armbuf[0] = (char) (l->pl_armies / 100 + '0');
- armbuf[1] = (char) (l->pl_armies / 10 + '0');
+ armbuf[1] = (char) ((l->pl_armies / 10) % 10 + '0');
armbuf[2] = (char) (l->pl_armies % 10 + '0');
armbuf[3] = '\0';
armbuflen = 4;
Index: sound.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/sound.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- sound.c 3 Jun 2006 07:03:42 -0000 1.15
+++ sound.c 9 Jun 2006 22:08:40 -0000 1.16
@@ -176,7 +176,7 @@
atexit(SDL_Quit);
/* Open the audio device at 22050 Hz 8 bit Microsoft PCM with stereo */
- if (Mix_OpenAudio(22050, AUDIO_U8, 2, 1024) < 0)
+ if (Mix_OpenAudio(22050, AUDIO_S16SYS, 2, 1024) < 0)
LineToConsole("Mix_OpenAudio: %s\n", Mix_GetError());
/* If we successfully loaded the wav files, so shut-off sound_init and play