From 1ddb69052a56217325ea482e5646cc3c0b05c4e1 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Tue, 11 Jun 2013 02:07:22 +0200 Subject: [PATCH] Bug 879651 - Choose between integers or float based on the platform rather than the CPU architecture. r=blassey --- configure.in | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index f1111a078158..69005796e7e1 100644 --- a/configure.in +++ b/configure.in @@ -5362,18 +5362,16 @@ AC_SUBST(MOZ_WEBRTC_ASSERT_ALWAYS) AC_SUBST(MOZ_SCTP) AC_SUBST(MOZ_SRTP) -case "$target_cpu" in -arm*) +dnl Use integers over floats for audio on B2G and Android +if test "$OS_TARGET" = "Android"; then MOZ_SAMPLE_TYPE_S16=1 AC_DEFINE(MOZ_SAMPLE_TYPE_S16) AC_SUBST(MOZ_SAMPLE_TYPE_S16) -;; -*) +else MOZ_SAMPLE_TYPE_FLOAT32=1 AC_DEFINE(MOZ_SAMPLE_TYPE_FLOAT32) AC_SUBST(MOZ_SAMPLE_TYPE_FLOAT32) -;; -esac +fi dnl ======================================================== dnl = Disable Speech API code -- 2.11.4.GIT