Login

Fancade Wiki

consistency

... ...
@@ -1,22 +1,27 @@
1
[[/uploads/Play_Sound.png | width=336px]]
2
1 3
Plays a sound effect with optional volume and pitch inputs and outputs the channel the sound is played on. Use the settings to change which sound effect is played.
2 4
3
[[/uploads/Play_Sound.png | width=336px]]
5
Inputs:
6
7
- Volume: ranges from 0 to 1 (inclusive).
8
- Pitch: ranges from 0 to 4 (inclusive).
9
10
Output:
4 11
5
## Input/Output
12
- Channel: When too many looped sounds are playing or all channels are occupied, it outputs -1. Otherwise, it outputs a non-negative integer where the sound is occupied from 0 to 9 (inclusive). Used in conjunction with [[Volume Pitch]].
6 13
7
Unlike most other blocks, a wire connected to Before is *required* for it do do anything, it does not run automatically.
14
## Notes
8 15
9
| Wire | Range | Note |
10
|----------- |:-----:|:-----|
11
| Volume | 0 to 1 |
12
| Pitch | 0 to 4 |
13
| *Channel* | -1 to 9 | Only -1 when channels 0 to 9 are occupied or plays too many looped sounds. If so, the sound will fail to play.
16
- Unlike most other blocks, a wire connected to Before is *required* for it to do anything, it does not run automatically.
14 17
15
## Settings
18
- [[/uploads/Playsound_contextmenu.png]]
16 19
17
[[/uploads/Playsound_contextmenu.png]]
20
The rightmost setting displays which sound effect is played. Tap to change.
18 21
19
The rightmost setting displays which sound effect is played. Tap to change.
22
Checking Loop will make the sound repeat on the chosen channel until stopped with [[Stop Sound]]. A looping channel becomes occupied until it is stopped, meaning other Play Sound blocks will not choose that channel.
20 23
21
Checking Loop will make the sound repeat on the chosen channel until stopped with [[Stop Sound]]. A looping channel becomes occupied until it is stopped, meaning other Play Sound blocks will not choose that channel.
24
## Related
22 25
26
- [[Stop Sound]]
27
- [[Volume Pitch]]
... ...
\ No newline at end of file
Fancade Wiki