update playwav.py for python 3

use int division for periodsize to be compatible with python 3
This commit is contained in:
MOHAMMAD RASIM
2018-02-24 19:40:45 +03:00
committed by GitHub
parent 723eff3887
commit c1c8362eb2

View File

@@ -30,7 +30,7 @@ def play(device, f):
else:
raise ValueError('Unsupported format')
periodsize = f.getframerate() / 8
periodsize = f.getframerate() // 8
device.setperiodsize(periodsize)