Mercurial > pidgin
comparison src/sound.c @ 3025:0486d3d00d0e
[gaim-migrate @ 3038]
Reworked sound preference by Robert McQueen.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 09 Mar 2002 18:39:46 +0000 |
parents | 234ce8eb132d |
children | 4f2f12bf4408 |
comparison
equal
deleted
inserted
replaced
3024:d17e7255c3cb | 3025:0486d3d00d0e |
---|---|
401 if (pid < 0) | 401 if (pid < 0) |
402 return; | 402 return; |
403 else if (pid == 0) { | 403 else if (pid == 0) { |
404 alarm(30); | 404 alarm(30); |
405 | 405 |
406 if (sound_cmd[0]) { | 406 if ((sound_options & OPT_SOUND_CMD) && sound_cmd[0]) { |
407 char *args[4]; | 407 char *args[4]; |
408 char command[4096]; | 408 char command[4096]; |
409 | 409 |
410 g_snprintf(command, sizeof(command), sound_cmd, filename); | 410 g_snprintf(command, sizeof(command), sound_cmd, filename); |
411 | 411 |
458 | 458 |
459 if (sound_options & OPT_SOUND_BEEP) { | 459 if (sound_options & OPT_SOUND_BEEP) { |
460 gdk_beep(); | 460 gdk_beep(); |
461 return; | 461 return; |
462 } | 462 } |
463 | |
464 else if ((sound_options & OPT_SOUND_CMD) && sound_cmd[0]) { | |
465 debug_printf("can't play internal sound with external command -- skipping\n"); | |
466 return; | |
467 } | |
468 | |
463 pid = fork(); | 469 pid = fork(); |
464 | 470 |
465 if (pid < 0) | 471 if (pid < 0) |
466 return; | 472 return; |
467 else if (pid == 0) { | 473 else if (pid == 0) { |