about summary refs log tree commit diff
path: root/src/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/client/ec_snd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/client/ec_snd.c b/src/engine/client/ec_snd.c
index ed66cc1f..3e29697c 100644
--- a/src/engine/client/ec_snd.c
+++ b/src/engine/client/ec_snd.c
@@ -235,6 +235,10 @@ static void mix(short *final_out, unsigned frames)
 			final_out[j+1] = int2short(vr);
 		}
 	}
+
+#if defined(CONF_ARCH_ENDIAN_BIG)
+	swap_endian(final_out, sizeof(short), frames * 2);
+#endif
 }
 
 static void sdlcallback(void *unused, Uint8 *stream, int len)