mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-04-18 00:46:29 +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:
|
else:
|
||||||
raise ValueError('Unsupported format')
|
raise ValueError('Unsupported format')
|
||||||
|
|
||||||
periodsize = f.getframerate() / 8
|
periodsize = f.getframerate() // 8
|
||||||
|
|
||||||
device.setperiodsize(periodsize)
|
device.setperiodsize(periodsize)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user