mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-06-10 14:32:26 +00:00
Import from divmod. Original log message:
r833 | casper | 2004-10-05 21:43:58 +0200 (Tue, 05 Oct 2004) | 1 line Completed mixer read/write support. Docs to follow git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@4 ec2f30ec-7544-0410-870e-f70ca00c83f0
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ import sys
|
||||
import time
|
||||
|
||||
# Open the device in playback mode.
|
||||
out = alsaaudio.openpcm(alsaaudio.PCM_PLAYBACK)
|
||||
out = alsaaudio.PCM(alsaaudio.PCM_PLAYBACK)
|
||||
|
||||
# Set attributes: Mono, 8000 Hz, 16 bit little endian frames
|
||||
out.setchannels(1)
|
||||
|
||||
Reference in New Issue
Block a user