summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/portaudio/qa
diff options
context:
space:
mode:
author inte alls <inte@localhost.localdomain>2017-01-11 20:21:24 +0100
committer inte alls <inte@localhost.localdomain>2017-01-11 20:21:24 +0100
commit6b0069a9b65ff912242f82744ac8f8e48f82141e (patch)
treea045aa9f6aa6791a936f8b7dfae413bd7f355557 /3rdparty/portaudio/qa
parent7960c921979aaa30c0545411d158d2a9b4dc48f0 (diff)
Update PortAudio to version 20161030
Diffstat (limited to '3rdparty/portaudio/qa')
-rwxr-xr-x[-rw-r--r--]3rdparty/portaudio/qa/loopback/src/biquad_filter.c2
-rwxr-xr-x[-rw-r--r--]3rdparty/portaudio/qa/loopback/src/biquad_filter.h0
-rw-r--r--3rdparty/portaudio/qa/loopback/src/paqa.c16
-rwxr-xr-x[-rw-r--r--]3rdparty/portaudio/qa/loopback/src/qa_tools.h9
-rwxr-xr-x[-rw-r--r--]3rdparty/portaudio/qa/loopback/src/write_wav.c0
-rwxr-xr-x[-rw-r--r--]3rdparty/portaudio/qa/loopback/src/write_wav.h0
-rw-r--r--3rdparty/portaudio/qa/paqa_devs.c2
-rw-r--r--3rdparty/portaudio/qa/paqa_errs.c2
8 files changed, 20 insertions, 11 deletions
diff --git a/3rdparty/portaudio/qa/loopback/src/biquad_filter.c b/3rdparty/portaudio/qa/loopback/src/biquad_filter.c
index 0566085a610..1bc4a232ab6 100644..100755
--- a/3rdparty/portaudio/qa/loopback/src/biquad_filter.c
+++ b/3rdparty/portaudio/qa/loopback/src/biquad_filter.c
@@ -119,4 +119,4 @@ void BiquadFilter_Filter( BiquadFilter *filter, float *inputs, float *outputs, i
filter->xn2 = xn2;
filter->yn1 = yn1;
filter->yn2 = yn2;
-} \ No newline at end of file
+}
diff --git a/3rdparty/portaudio/qa/loopback/src/biquad_filter.h b/3rdparty/portaudio/qa/loopback/src/biquad_filter.h
index cbac688b6fd..cbac688b6fd 100644..100755
--- a/3rdparty/portaudio/qa/loopback/src/biquad_filter.h
+++ b/3rdparty/portaudio/qa/loopback/src/biquad_filter.h
diff --git a/3rdparty/portaudio/qa/loopback/src/paqa.c b/3rdparty/portaudio/qa/loopback/src/paqa.c
index ad654dbe1ea..cb7100d7807 100644
--- a/3rdparty/portaudio/qa/loopback/src/paqa.c
+++ b/3rdparty/portaudio/qa/loopback/src/paqa.c
@@ -890,10 +890,10 @@ static int PaQa_SingleLoopBackTest( UserOptions *userOptions, TestParameters *te
{
printf( "OK" );
}
-
- printf( "\n" );
-
-
+
+ // Print the # errors so far to make it easier to see where the error occured.
+ printf( " - #errs = %d\n", g_testsFailed );
+
PaQa_TeardownLoopbackContext( &loopbackContext );
if( numBadChannels > 0 )
{
@@ -1376,25 +1376,25 @@ int TestSampleFormatConversion( void )
PaQa_ConvertFromFloat( floatInput, 4, paUInt8, ucharOutput );
for( i=0; i<4; i++ )
{
- QA_ASSERT_CLOSE( "paFloat32 -> paUInt8 -> error", ucharInput[i], ucharOutput[i], 1 );
+ QA_ASSERT_CLOSE_INT( "paFloat32 -> paUInt8 -> error", ucharInput[i], ucharOutput[i], 1 );
}
PaQa_ConvertFromFloat( floatInput, 4, paInt8, charOutput );
for( i=0; i<4; i++ )
{
- QA_ASSERT_CLOSE( "paFloat32 -> paInt8 -> error", charInput[i], charOutput[i], 1 );
+ QA_ASSERT_CLOSE_INT( "paFloat32 -> paInt8 -> error", charInput[i], charOutput[i], 1 );
}
PaQa_ConvertFromFloat( floatInput, 4, paInt16, shortOutput );
for( i=0; i<4; i++ )
{
- QA_ASSERT_CLOSE( "paFloat32 -> paInt16 error", shortInput[i], shortOutput[i], 1 );
+ QA_ASSERT_CLOSE_INT( "paFloat32 -> paInt16 error", shortInput[i], shortOutput[i], 1 );
}
PaQa_ConvertFromFloat( floatInput, 4, paInt32, intOutput );
for( i=0; i<4; i++ )
{
- QA_ASSERT_CLOSE( "paFloat32 -> paInt32 error", intInput[i], intOutput[i], 0x00010000 );
+ QA_ASSERT_CLOSE_INT( "paFloat32 -> paInt32 error", intInput[i], intOutput[i], 0x00010000 );
}
diff --git a/3rdparty/portaudio/qa/loopback/src/qa_tools.h b/3rdparty/portaudio/qa/loopback/src/qa_tools.h
index 1f33224fe6a..320236e907f 100644..100755
--- a/3rdparty/portaudio/qa/loopback/src/qa_tools.h
+++ b/3rdparty/portaudio/qa/loopback/src/qa_tools.h
@@ -70,5 +70,14 @@ extern int g_testsFailed;
} \
else g_testsPassed++;
+#define QA_ASSERT_CLOSE_INT( message, expected, actual, tolerance ) \
+ if (abs((expected)-(actual))>(tolerance)) \
+ { \
+ printf( "%s:%d - ERROR - %s, expected %d, got %d, tol=%d\n", __FILE__, __LINE__, message, ((int)(expected)), ((int)(actual)), ((int)(tolerance)) ); \
+ g_testsFailed++; \
+ goto error; \
+ } \
+ else g_testsPassed++;
+
#endif
diff --git a/3rdparty/portaudio/qa/loopback/src/write_wav.c b/3rdparty/portaudio/qa/loopback/src/write_wav.c
index d948b346ef1..d948b346ef1 100644..100755
--- a/3rdparty/portaudio/qa/loopback/src/write_wav.c
+++ b/3rdparty/portaudio/qa/loopback/src/write_wav.c
diff --git a/3rdparty/portaudio/qa/loopback/src/write_wav.h b/3rdparty/portaudio/qa/loopback/src/write_wav.h
index 5a9c5ab9630..5a9c5ab9630 100644..100755
--- a/3rdparty/portaudio/qa/loopback/src/write_wav.h
+++ b/3rdparty/portaudio/qa/loopback/src/write_wav.h
diff --git a/3rdparty/portaudio/qa/paqa_devs.c b/3rdparty/portaudio/qa/paqa_devs.c
index b773e9203ec..721b07f14fc 100644
--- a/3rdparty/portaudio/qa/paqa_devs.c
+++ b/3rdparty/portaudio/qa/paqa_devs.c
@@ -14,7 +14,7 @@
as in test pa_devs.c.
*/
/*
- * $Id: paqa_devs.c 1910 2013-09-07 10:14:52Z gineera $
+ * $Id$
*
* This program uses the PortAudio Portable Audio Library.
* For more information see: http://www.portaudio.com
diff --git a/3rdparty/portaudio/qa/paqa_errs.c b/3rdparty/portaudio/qa/paqa_errs.c
index 3454eba5d0a..8c1d06d96ed 100644
--- a/3rdparty/portaudio/qa/paqa_errs.c
+++ b/3rdparty/portaudio/qa/paqa_errs.c
@@ -6,7 +6,7 @@
Pieter Suurmond adapted to V19 API.
*/
/*
- * $Id: paqa_errs.c 1756 2011-09-08 06:09:29Z philburk $
+ * $Id$
*
* This program uses the PortAudio Portable Audio Library.
* For more information see: http://www.portaudio.com