syntax: glob
build/*
+dist/*
old/*
*~
.*~
*.orig
*.rej
+*.pyc
+MANIFEST
+version
+include test/*.py
include utils/*.py
--- /dev/null
+#! /usr/bin/python
+# -*- Python -*-
+
+import sys
+import gc
+
+def debuginit():
+ gc.set_debug(gc.DEBUG_LEAK)
+
+def debug(what):
+ from sys import getrefcount
+ from gc import get_referrers
+ for o in what:
+ if getrefcount(o) - 3 != 1 or \
+ len(get_referrers(o)) - 2 != 1:
+ print 'LEAK:', hex(id(o)), type(o), getrefcount(o)-3, len(get_referrers(o))-2
+
+def debugdone():
+ None
#! /usr/bin/python
# -*- Python -*-
+import sys
+sys.path.insert(0, '../pyalsa')
+del sys
import alsacard
print 'asoundlibVersion:', alsacard.asoundlibVersion()
#! /usr/bin/python
# -*- Python -*-
+import sys
+sys.path.insert(0, '../pyalsa')
+del sys
import alsahcontrol
def info(element):
#! /usr/bin/python
# -*- Python -*-
+import sys
+sys.path.insert(0, '../pyalsa')
+del sys
import select
import alsahcontrol
#! /usr/bin/python
# -*- Python -*-
+import sys
+sys.path.insert(0, '../pyalsa')
+del sys
+from alsamemdebug import debuginit, debug, debugdone
import alsamixer
def print_elem(e):
if e.hasChannel(channel, capture):
print ' has%sChannel%s: %s' % (direction[capture], channel, alsamixer.ChannelName[channel])
+debuginit()
+
print 'ChannelId:'
print alsamixer.ChannelId
element.setVolumeTuple((128, 128))
print_elem(element)
print_elem(alsamixer.Element(mixer, "Off-hook"))
+
+debug([element])
+del element
+debug([mixer])
del mixer
+
+debugdone()
#! /usr/bin/python
# -*- Python -*-
+import sys
+sys.path.insert(0, '../pyalsa')
+del sys
import alsamixer
import select