From c1c8362eb2c33759e4b4be1b1b035c99bf76c7e8 Mon Sep 17 00:00:00 2001 From: MOHAMMAD RASIM Date: Sat, 24 Feb 2018 19:40:45 +0300 Subject: [PATCH] update playwav.py for python 3 use int division for periodsize to be compatible with python 3 --- playwav.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playwav.py b/playwav.py index 1940b40..5567440 100755 --- a/playwav.py +++ b/playwav.py @@ -30,7 +30,7 @@ def play(device, f): else: raise ValueError('Unsupported format') - periodsize = f.getframerate() / 8 + periodsize = f.getframerate() // 8 device.setperiodsize(periodsize)