forked from auracaster/pyalsaaudio
update playwav.py for python 3
use int division for periodsize to be compatible with python 3
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ def play(device, f):
|
||||
else:
|
||||
raise ValueError('Unsupported format')
|
||||
|
||||
periodsize = f.getframerate() / 8
|
||||
periodsize = f.getframerate() // 8
|
||||
|
||||
device.setperiodsize(periodsize)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user