From a3e9f7452bae04608d8d6e6ab9042cbc9dc10b9d Mon Sep 17 00:00:00 2001 From: Jamie Bullock Date: Thu, 10 Jan 2013 22:41:03 +0000 Subject: fixed Linux bugs --- swig/python/test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'swig/python/test.py') diff --git a/swig/python/test.py b/swig/python/test.py index fe4981e..a89a6f9 100644 --- a/swig/python/test.py +++ b/swig/python/test.py @@ -9,7 +9,7 @@ print '\nRunning libxtract Python bindings test...\n' len = 8 -a = xtract.floatArray(len) +a = xtract.doubleArray(len) temp = [] for i in range(0, len): @@ -20,7 +20,7 @@ mean = xtract.xtract_mean(a,len,None)[1] print 'The mean of ' + ', '.join(temp) + ' is: %.2f' % mean -argv = xtract.floatArray(1) +argv = xtract.doubleArray(1) argv[0] = mean variance = xtract.xtract_variance(a, len, argv)[1] @@ -29,12 +29,12 @@ print 'The variance is %.2f' % variance print 'Computing spectrum...' -argv = xtract.floatArray(1) +argv = xtract.doubleArray(1) argv[0] = 44100.0 / len # Fake sample rate xtract.xtract_init_fft(len, xtract.XTRACT_SPECTRUM); -result = xtract.floatArray(len) +result = xtract.doubleArray(len) xtract.xtract_spectrum(a,len,argv, result) -- cgit v1.2.3