Mercurial > pidgin
comparison src/gaim.h @ 4561:9df99116840a
[gaim-migrate @ 4842]
This is the new sound subsystem
Lots of stuff got renamed, and everything sound-wise is documented.
Gaim now uses libaudiofile and libao to play sounds. Lots of ugly hacks
were removed, and now we support playing audio through anything that
libao will support.
If you need to (you shouldn't) you can force libao to use a specific
output driver, by putting a line into ~/.libao like:
default_driver=esd
You shouldn't need to do this, libao is pretty good at figuring out what
driver to use.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sun, 09 Feb 2003 01:55:35 +0000 |
parents | 3196d9044a45 |
children | 4b1e24835bbf |
comparison
equal
deleted
inserted
replaced
4560:eb32b3acef97 | 4561:9df99116840a |
---|---|
310 #define OPT_SOUND_NAS 0x00004000 | 310 #define OPT_SOUND_NAS 0x00004000 |
311 #define OPT_SOUND_ARTSC 0x00008000 | 311 #define OPT_SOUND_ARTSC 0x00008000 |
312 #define OPT_SOUND_ESD 0x00010000 | 312 #define OPT_SOUND_ESD 0x00010000 |
313 #define OPT_SOUND_CMD 0x00020000 | 313 #define OPT_SOUND_CMD 0x00020000 |
314 #define OPT_SOUND_CHAT_NICK 0x00040000 | 314 #define OPT_SOUND_CHAT_NICK 0x00040000 |
315 /* remember to also change the struct in sound.c */ | |
316 | |
317 #define SND_BUDDY_ARRIVE 0 | |
318 #define SND_BUDDY_LEAVE 1 | |
319 #define SND_RECEIVE 2 | |
320 #define SND_FIRST_RECEIVE 3 | |
321 #define SND_SEND 4 | |
322 #define SND_CHAT_JOIN 5 | |
323 #define SND_CHAT_LEAVE 6 | |
324 #define SND_CHAT_YOU_SAY 7 | |
325 #define SND_CHAT_SAY 8 | |
326 #define SND_POUNCE_DEFAULT 9 | |
327 #define SND_CHAT_NICK 10 | |
328 #define NUM_SOUNDS 11 | |
329 | |
330 extern char *sound_file[NUM_SOUNDS]; | |
331 | |
332 /* global sound struct */ | |
333 struct sound_struct { | |
334 char *label; | |
335 guint opt; | |
336 char *def; | |
337 }; | |
338 extern struct sound_struct sounds[]; | |
339 | 315 |
340 extern guint away_options; | 316 extern guint away_options; |
341 #define OPT_AWAY_DISCARD 0x00000001 | 317 #define OPT_AWAY_DISCARD 0x00000001 |
342 #define OPT_AWAY_BACK_ON_IM 0x00000002 | 318 #define OPT_AWAY_BACK_ON_IM 0x00000002 |
343 /* #define OPT_AWAY_TIK_HACK 0x00000004 */ | 319 /* #define OPT_AWAY_TIK_HACK 0x00000004 */ |
353 extern int web_browser; | 329 extern int web_browser; |
354 extern GSList *gaim_accounts; | 330 extern GSList *gaim_accounts; |
355 extern GSList *message_queue; | 331 extern GSList *message_queue; |
356 extern GSList *unread_message_queue; | 332 extern GSList *unread_message_queue; |
357 extern GSList *away_time_queue; | 333 extern GSList *away_time_queue; |
358 extern char sound_cmd[2048]; | |
359 extern char web_command[2048]; | 334 extern char web_command[2048]; |
360 extern struct save_pos blist_pos; | 335 extern struct save_pos blist_pos; |
361 extern struct window_size conv_size, buddy_chat_size; | 336 extern struct window_size conv_size, buddy_chat_size; |
362 | 337 |
363 /* Functions in aim.c */ | 338 /* Functions in aim.c */ |