X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=osx_write.c;h=f13ec6e1988e00ebce5a9639167650fceea24d6d;hp=107746c78e83f8f875d640a27114ee0d57eb01fa;hb=85225bb1292d1885e0261fb5109d18ecd584c267;hpb=fd7ddaebab6613627a070e8867ace2f2eb3d4cc3 diff --git a/osx_write.c b/osx_write.c index 107746c7..f13ec6e1 100644 --- a/osx_write.c +++ b/osx_write.c @@ -111,14 +111,8 @@ static void fill_buffer(struct osx_buffer *b, short *source, long size) b->size = size; } dest = b->buffer; - while (size--) { - char *tmp = (char *)source; - char c = *tmp; - *tmp = *(tmp + 1); - *(tmp + 1) = c; - /* *dest++ = ((*source++) + 32768) / 65536.0; */ + while (size--) *dest++ = (*source++) / 32768.0; - } b->ptr = b->buffer; b->remaining = b->size; }