X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsound.c;h=0e90a582ea86c9229d8f34629d3be45bf0caba6a;hp=20a1978ee4465d7e108d96c84a90a2cc8bacb9ec;hb=c9a9a7720326d7b266ac351028a9711a0136ba73;hpb=19db00ff98326cb4b92cea42080d7094e0842243 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 */