| 50 #include "sounds/BuddyLeave.h" |
50 #include "sounds/BuddyLeave.h" |
| 51 #include "sounds/Send.h" |
51 #include "sounds/Send.h" |
| 52 #include "sounds/Receive.h" |
52 #include "sounds/Receive.h" |
| 53 #include "sounds/RedAlert.h" |
53 #include "sounds/RedAlert.h" |
| 54 |
54 |
| 55 |
|
| 56 gboolean mute_sounds = 0; |
55 gboolean mute_sounds = 0; |
| 57 |
56 |
| 58 /* label and opt are null for the buddy pounce because it's configured * |
57 /* description, option bit, default sound array, and it's size. * |
| 59 * per pounce. NULL option means it doesn't get displayed in the sound * |
58 * if you want it to get displayed in the prefs dialog, it needs * |
| 60 * preferences box */ |
59 * to be added to the sound_order array in prefs.c, if not, and * |
| |
60 * it has no option bit, set it to 0. the order here has to match * |
| |
61 * the defines in gaim.h. -Robot101 */ |
| 61 struct sound_struct sounds[NUM_SOUNDS] = { |
62 struct sound_struct sounds[NUM_SOUNDS] = { |
| 62 {N_("Buddy logs in"), OPT_SOUND_LOGIN, BuddyArrive, sizeof(BuddyArrive)}, |
63 {N_("Buddy logs in"), OPT_SOUND_LOGIN, BuddyArrive, sizeof(BuddyArrive)}, |
| 63 {N_("Buddy logs out"), OPT_SOUND_LOGOUT, BuddyLeave, sizeof(BuddyLeave)}, |
64 {N_("Buddy logs out"), OPT_SOUND_LOGOUT, BuddyLeave, sizeof(BuddyLeave)}, |
| 64 {N_("Message received"), OPT_SOUND_RECV, Receive, sizeof(Receive)}, |
65 {N_("Message received"), OPT_SOUND_RECV, Receive, sizeof(Receive)}, |
| 65 {N_("Message received begins conversation"), OPT_SOUND_FIRST_RCV, Receive, sizeof(Receive)}, |
66 {N_("Message received begins conversation"), OPT_SOUND_FIRST_RCV, Receive, sizeof(Receive)}, |
| 66 {N_("Message sent"), OPT_SOUND_SEND, Send, sizeof(Send)}, |
67 {N_("Message sent"), OPT_SOUND_SEND, Send, sizeof(Send)}, |
| 67 {N_("Person enters chat"), OPT_SOUND_CHAT_JOIN, BuddyArrive, sizeof(BuddyArrive)}, |
68 {N_("Person enters chat"), OPT_SOUND_CHAT_JOIN, BuddyArrive, sizeof(BuddyArrive)}, |
| 68 {N_("Person leaves chat"), OPT_SOUND_CHAT_PART, BuddyLeave, sizeof(BuddyLeave)}, |
69 {N_("Person leaves chat"), OPT_SOUND_CHAT_PART, BuddyLeave, sizeof(BuddyLeave)}, |
| 69 {N_("You talk in chat"), OPT_SOUND_CHAT_YOU_SAY, Send, sizeof(Send)}, |
70 {N_("You talk in chat"), OPT_SOUND_CHAT_YOU_SAY, Send, sizeof(Send)}, |
| 70 {N_("Others talk in chat"), OPT_SOUND_CHAT_SAY, Receive, sizeof(Receive)}, |
71 {N_("Others talk in chat"), OPT_SOUND_CHAT_SAY, Receive, sizeof(Receive)}, |
| |
72 /* this isn't a terminator, it's the buddy pounce default sound event ;-) */ |
| 71 {NULL, 0, RedAlert, sizeof(RedAlert)}, |
73 {NULL, 0, RedAlert, sizeof(RedAlert)}, |
| 72 {N_("Someone says your name in chat"), OPT_SOUND_CHAT_NICK, Receive, sizeof(Receive)} |
74 {N_("Someone says your name in chat"), OPT_SOUND_CHAT_NICK, Receive, sizeof(Receive)} |
| 73 }; |
75 }; |
| 74 |
76 |
| 75 static int check_dev(char *dev) |
77 static int check_dev(char *dev) |