-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsounds.h
74 lines (48 loc) · 776 Bytes
/
sounds.h
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
void *welcomeS (){
int i;
x:
i=400;
for(int j=0;j<4;j++){
Beep(i,360);
Beep(i,350);
Beep(i,360);
Beep(i,600);
Beep(i,200);
if(j==3){Beep(i,1000);}else{
Beep(i,200);Sleep(50);}
i+=100;
if(enteredd==1){break;}
}
Sleep(4000);
i=400;
if(enteredd==0){
goto x;
}
}
void welcomesound(){
pthread_t thr4;
pthread_create(&thr4,NULL,welcomeS,NULL);
}
void *wons (){
Beep(350,300);
}
void winsound(){
pthread_t thr5;
pthread_create(&thr5,NULL,wons,NULL);
}
void *loses (){
int i=0;
while (enteredd==0){
Beep(1200,300);
}
while(enteredd==2){
Beep(500+i,50);
Sleep(50);
i+=20;
if(i==100){i-=100;}
}
}
void losesound(){
pthread_t thr7;
pthread_create(&thr7,NULL,loses,NULL);
}