blob: ac347cb64087688cbca4c6597259862b2fb029db [file] [log] [blame]
Guido van Rossum17448e21995-01-30 11:53:55 +00001# Show off SndPlay (and some resource manager functions).
2# Get a list of all 'snd ' resources in the system and play them all.
3
4from Res import *
5from Snd import *
6
7ch = SndNewChannel(0, 0, None)
8print "Channel:", ch
9
10type = 'snd '
11
12for i in range(CountResources(type)):
13 r = GetIndResource(type, i+1)
14 print r.GetResInfo(), r.size
15 if r.GetResInfo()[0] == 1:
16 print "Skipping simple beep"
17 continue
18 ch.SndPlay(r, 0)