From cdb4bba35a69be9f5e245d3c6c81e11818a546c2 Mon Sep 17 00:00:00 2001
From: Graham Northup <grissess@nexusg.org>
Date: Thu, 6 Sep 2018 04:07:30 -0400
Subject: Ensure interpolation is properly cast

---
 client.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'client.py')

diff --git a/client.py b/client.py
index bfe98d5..0df7610 100644
--- a/client.py
+++ b/client.py
@@ -352,7 +352,7 @@ if options.numpy:
 
     def resample(samps, amt):
         samps = numpy.frombuffer(samps, numpy.int32)
-        return numpy.interp(numpy.linspace(0, samps.shape[0], amt, False), numpy.linspace(0, samps.shape[0], samps.shape[0], False), samps).tobytes()
+        return numpy.interp(numpy.linspace(0, samps.shape[0], amt, False), numpy.linspace(0, samps.shape[0], samps.shape[0], False), samps).astype(numpy.int32).tobytes()
 
 else:
     def lin_seq(frm, to, cnt):
-- 
cgit v1.2.3-70-g09d2