From f0971c9454e7fa51f51115f6a0b5ef42112ae9ba Mon Sep 17 00:00:00 2001 From: larsimmisch Date: Mon, 24 Aug 2009 22:59:50 +0000 Subject: [PATCH] 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 --- test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 2f89df9..8623bb6 100755 --- a/test.py +++ b/test.py @@ -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):