Let's see if an ntohs() call helps with mixing AIFFs.
authorDavid Griffith <dave@661.org>
Mon, 30 Dec 2013 11:33:04 +0000 (03:33 -0800)
committerDavid Griffith <dave@661.org>
Mon, 30 Dec 2013 11:33:04 +0000 (03:33 -0800)
src/curses/ux_audio.c

index 97552340f902ea12d5d4595106284d7327417ed8..115a6dfc0dc6a220381e3cbf383faf7d30d500d3 100644 (file)
@@ -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]);
            }
        }