summaryrefslogtreecommitdiff
path: root/test/voices.script
blob: 4b444d091c56b6ca54a46d610b1f869c45b5d2da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# A sound made with host.newSound is a voice like a loaded one: it sounds
# once for its serial, a replay that keeps declaring that serial does not
# sound it again, and a new serial does.
frames 3
expect-no-audio 1
key space
expect coins 1
expect-audio 1
frames 10
expect-no-audio 1
# Recorded while the blip is declared but finished, then played back,
# stepped and seeked over: the same serial all along, so it stays silent.
console record 0
frames 20
console stop
console play 0
frames 30
expect-no-audio 1
console seek start
console step 5
console seek end
expect-no-audio 1
console stop
# A new serial starts it again.
key space
expect coins 2
expect-audio 1
frames 10
expect-no-audio 1