From: David Griffith Date: Mon, 30 Dec 2013 11:33:04 +0000 (-0800) Subject: Let's see if an ntohs() call helps with mixing AIFFs. X-Git-Url: https://scope-eye.net/git/?a=commitdiff_plain;h=219000fa8f1a1f84aeeb3476d5a645c5c3b1be95;p=liskon_frotz.git Let's see if an ntohs() call helps with mixing AIFFs. --- diff --git a/src/curses/ux_audio.c b/src/curses/ux_audio.c index 9755234..115a6df 100644 --- a/src/curses/ux_audio.c +++ b/src/curses/ux_audio.c @@ -770,7 +770,8 @@ static int playogg(FILE *fp, bb_result_t result, int vol, int repeats) for (volcount = 0; volcount <= frames_read / 2; volcount++) { ((int16_t *) buffer)[volcount] /= volfactor; if (poll_ret > 0) { - ((short *) buffer)[volcount] += ((short *) mixbuffer)[volcount]; + + ((short *) buffer)[volcount] += ntohs(((short *) mixbuffer)[volcount]); } }