mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-04-16 16:15:31 +00:00
Merge pull request #55 from moham96/patch-1
update playwav.py for python 3
This commit is contained in:
@@ -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