From: Holger Schemel Date: Sun, 28 Apr 2002 16:37:24 +0000 (+0200) Subject: rnd-20020428-2-src X-Git-Tag: 2.1.0^2~44 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=c9a9a7720326d7b266ac351028a9711a0136ba73;p=rocksndiamonds.git rnd-20020428-2-src --- diff --git a/src/libgame/sound.c b/src/libgame/sound.c index 20a1978e..0e90a582 100644 --- a/src/libgame/sound.c +++ b/src/libgame/sound.c @@ -357,8 +357,6 @@ void SoundServer(void) select(audio.soundserver_pipe[0] + 1, &sound_fdset, NULL, NULL, &delay) < 1) { - void *sample_ptr; - int sample_size; int max_sample_size; int fragment_size = afmt.fragment_size; int sample_bytes = (afmt.format & AUDIO_FORMAT_U8 ? 1 : 2); @@ -374,66 +372,52 @@ void SoundServer(void) for(i=0; idata_len * sizeof(short)); - - for (i=0; idata_len; i++) - data_ptr[i] = ((short)(((byte *)snd_info->data_ptr)[i] ^ 0x80)) << 8; - - free(snd_info->data_ptr); - snd_info->data_ptr = data_ptr; - - snd_info->format = AUDIO_FORMAT_S16; - } - else - { - snd_info->format = AUDIO_FORMAT_U8; - } + snd_info->format = AUDIO_FORMAT_U8; #endif /* PLATFORM_UNIX */