-
Notifications
You must be signed in to change notification settings - Fork 22
/
snd_fx
41 lines (32 loc) · 831 Bytes
/
snd_fx
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
30
31
32
33
34
35
36
37
38
39
40
Build Your Own Sound FX
Video: http://youtu.be/_dPn_7AAWgE
Requirements
- libcanberra
- vala
Example Script:
###################################################
using Canberra;
public class HelloWorld {
static void main () {
Context hello;
Context.create(out hello);
hello.play (0,
PROP_EVENT_ID, "phone-incoming-call",
PROP_EVENT_DESCRIPTION, "hello world");
Thread.usleep (2000000);
}
}
###################################################
Command to build:
valac --pkg libcanberra sounds.vala
Sounds are referenced by:
/usr/share/sounds/freedesktop/stereo/
- add your own sounds:
copy as admin to the directory
/usr/share/sounds/freedesktop/stereo/
- give a unique name
- edit the script under:
PROP_EVENT_ID, "phone-incoming-call"
change to:
PROP_EVENT_ID, "my_sound"
- rename the output to whatever you wish