Update card by index - the name does not work reliably.

git-svn-id: svn://svn.code.sf.net/p/pyalsaaudio/code/trunk@36 ec2f30ec-7544-0410-870e-f70ca00c83f0
This commit is contained in:
larsimmisch
2009-08-24 22:59:50 +00:00
parent 707e7947b7
commit f0971c9454
+2 -2
View File
@@ -86,8 +86,8 @@ class PCMTest(unittest.TestCase):
def testPCM(self):
"Open a PCM object on every card"
for c in alsaaudio.cards():
pcm = alsaaudio.PCM(card=c)
for i in range(len(alsaaudio.cards())):
pcm = alsaaudio.PCM(i)
pcm.close()
def testPCMAll(self):