Mercurial > pidgin.yaz
comparison src/sound.c @ 4012:ab6c48a07fd6
[gaim-migrate @ 4212]
Fixed this filename madness. Robot101 is going to fix arts and nas and send
me a patch whilst I eat dinner. Herman (or Rob) you'll want to fix the win32
stuff accordingly, I presume.
This is not the end of the world.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 28 Nov 2002 02:03:38 +0000 |
parents | 2b18ea0ade13 |
children | 73853a0a1a77 |
comparison
equal
deleted
inserted
replaced
4011:a870a2a0bc5b | 4012:ab6c48a07fd6 |
---|---|
42 | 42 |
43 #ifdef ESD_SOUND | 43 #ifdef ESD_SOUND |
44 #include <esd.h> | 44 #include <esd.h> |
45 #endif | 45 #endif |
46 | 46 |
47 #ifdef ARTSC_SOUND | |
48 #include <artsc.h> | |
49 #endif | |
50 | |
51 #ifdef NAS_SOUND | |
52 #include <audio/audiolib.h> | |
53 #endif | |
54 | |
47 #include "gaim.h" | 55 #include "gaim.h" |
48 | 56 |
49 gboolean mute_sounds = 0; | 57 gboolean mute_sounds = 0; |
50 | 58 |
51 /* description, option bit, default sound file * | 59 /* description, option bit, default sound file * |
52 * if you want it to get displayed in the prefs dialog, it needs * | 60 * if you want it to get displayed in the prefs dialog, it needs * |
53 * to be added to the sound_order array in prefs.c, if not, and * | 61 * to be added to the sound_order array in prefs.c, if not, and * |
54 * it has no option bit, set it to 0. the order here has to match * | 62 * it has no option bit, set it to 0. the order here has to match * |
55 * the defines in gaim.h. -Robot101 */ | 63 * the defines in gaim.h. -Robot101 */ |
56 struct sound_struct sounds[NUM_SOUNDS] = { | 64 struct sound_struct sounds[NUM_SOUNDS] = { |
57 {N_("Buddy logs in"), OPT_SOUND_LOGIN, "BuddyArrive.wav"}, | 65 {N_("Buddy logs in"), OPT_SOUND_LOGIN, "buddyarrive.wav"}, |
58 {N_("Buddy logs out"), OPT_SOUND_LOGOUT, "BuddyLeave.wav"}, | 66 {N_("Buddy logs out"), OPT_SOUND_LOGOUT, "buddyleave.wav"}, |
59 {N_("Message received"), OPT_SOUND_RECV, "Receive.wav"}, | 67 {N_("Message received"), OPT_SOUND_RECV, "receive.wav"}, |
60 {N_("Message received begins conversation"), OPT_SOUND_FIRST_RCV, "Receive.wav"}, | 68 {N_("Message received begins conversation"), OPT_SOUND_FIRST_RCV, "receive.wav"}, |
61 {N_("Message sent"), OPT_SOUND_SEND, "Send.wav"}, | 69 {N_("Message sent"), OPT_SOUND_SEND, "send.wav"}, |
62 {N_("Person enters chat"), OPT_SOUND_CHAT_JOIN, "BuddyArrive.wav"}, | 70 {N_("Person enters chat"), OPT_SOUND_CHAT_JOIN, "buddyarrive.wav"}, |
63 {N_("Person leaves chat"), OPT_SOUND_CHAT_PART, "BuddyLeave.wav"}, | 71 {N_("Person leaves chat"), OPT_SOUND_CHAT_PART, "buddyleave.wav"}, |
64 {N_("You talk in chat"), OPT_SOUND_CHAT_YOU_SAY, "Send.wav"}, | 72 {N_("You talk in chat"), OPT_SOUND_CHAT_YOU_SAY, "send.wav"}, |
65 {N_("Others talk in chat"), OPT_SOUND_CHAT_SAY, "Receive.wav"}, | 73 {N_("Others talk in chat"), OPT_SOUND_CHAT_SAY, "receive.wav"}, |
66 /* this isn't a terminator, it's the buddy pounce default sound event ;-) */ | 74 /* this isn't a terminator, it's the buddy pounce default sound event ;-) */ |
67 {NULL, 0, "RedAlert.wav"}, | 75 {NULL, 0, "redalert.wav"}, |
68 {N_("Someone says your name in chat"), OPT_SOUND_CHAT_NICK, "RedAlert.wav"} | 76 {N_("Someone says your name in chat"), OPT_SOUND_CHAT_NICK, "redalert.wav"} |
69 }; | 77 }; |
70 int sound_order[] = { | 78 int sound_order[] = { |
71 SND_BUDDY_ARRIVE, SND_BUDDY_LEAVE, | 79 SND_BUDDY_ARRIVE, SND_BUDDY_LEAVE, |
72 SND_FIRST_RECEIVE, SND_RECEIVE, SND_SEND, | 80 SND_FIRST_RECEIVE, SND_RECEIVE, SND_SEND, |
73 SND_CHAT_JOIN, SND_CHAT_LEAVE, | 81 SND_CHAT_JOIN, SND_CHAT_LEAVE, |