diff options
| author | Guido van Rossum <guido@python.org> | 1995-01-30 11:53:55 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1995-01-30 11:53:55 +0000 |
| commit | 17448e24081eb713ac00d7bcb681f4f0d8abfcbf (patch) | |
| tree | 4f9d6768ef326173e1141b1a92af63247a42b13a /Mac/Lib/test/tsnd.py | |
| parent | 80ffd6683ca7b06ed743c629459b06b07defbfb3 (diff) | |
| download | cpython-git-17448e24081eb713ac00d7bcb681f4f0d8abfcbf.tar.gz | |
Committed a more or less working version.
Diffstat (limited to 'Mac/Lib/test/tsnd.py')
| -rw-r--r-- | Mac/Lib/test/tsnd.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Mac/Lib/test/tsnd.py b/Mac/Lib/test/tsnd.py new file mode 100644 index 0000000000..ac347cb640 --- /dev/null +++ b/Mac/Lib/test/tsnd.py @@ -0,0 +1,18 @@ +# Show off SndPlay (and some resource manager functions). +# Get a list of all 'snd ' resources in the system and play them all. + +from Res import * +from Snd import * + +ch = SndNewChannel(0, 0, None) +print "Channel:", ch + +type = 'snd ' + +for i in range(CountResources(type)): + r = GetIndResource(type, i+1) + print r.GetResInfo(), r.size + if r.GetResInfo()[0] == 1: + print "Skipping simple beep" + continue + ch.SndPlay(r, 0) |
