[pulseaudio-discuss] [PATCH] lfe-filter-test: Use S16NE format

David Henningsson david.henningsson at canonical.com
Mon May 25 23:49:02 PDT 2015


...otherwise this code will fail on big-endian architectures.

Cc: Hui Wang <hui.wang at canonical.com>
Signed-off-by: David Henningsson <david.henningsson at canonical.com>
---
 src/tests/lfe-filter-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/lfe-filter-test.c b/src/tests/lfe-filter-test.c
index ea8108c..389a2b9 100644
--- a/src/tests/lfe-filter-test.c
+++ b/src/tests/lfe-filter-test.c
@@ -133,7 +133,7 @@ START_TEST (lfe_filter_test) {
 
     a.channels = 1;
     a.rate = 44100;
-    a.format = PA_SAMPLE_S16LE;
+    a.format = PA_SAMPLE_S16NE;
 
     lft.ss = &a;
     pa_assert_se(lft.pool = pa_mempool_new(false, 0));
-- 
1.9.1



More information about the pulseaudio-discuss mailing list