diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2013-01-10 22:41:03 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2013-01-10 22:41:03 +0000 |
commit | a3e9f7452bae04608d8d6e6ab9042cbc9dc10b9d (patch) | |
tree | 0d24f0ff99e58a9c0526384991992635a987f1f3 /swig/python/test.py | |
parent | b5f088a84ea769b15385998f3f087607cf7e71bc (diff) | |
download | LibXtract-a3e9f7452bae04608d8d6e6ab9042cbc9dc10b9d.tar.gz LibXtract-a3e9f7452bae04608d8d6e6ab9042cbc9dc10b9d.tar.bz2 LibXtract-a3e9f7452bae04608d8d6e6ab9042cbc9dc10b9d.zip |
fixed Linux bugs
Diffstat (limited to 'swig/python/test.py')
-rw-r--r-- | swig/python/test.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |