From 219000fa8f1a1f84aeeb3476d5a645c5c3b1be95 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Mon, 30 Dec 2013 03:33:04 -0800 Subject: [PATCH] Let's see if an ntohs() call helps with mixing AIFFs. --- src/curses/ux_audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); } } -- 2.34.1