comparison src/sound.c @ 668:c9b66c710283

[gaim-migrate @ 678] i think i finally fixed the problems plaguing sound committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 11 Aug 2000 05:15:43 +0000
parents 6ba20a0089d8
children 9614e69f68ca
comparison
equal deleted inserted replaced
667:45ed2ca0756e 668:c9b66c710283
139 139
140 static int can_play_esd() 140 static int can_play_esd()
141 { 141 {
142 esd_format_t format = ESD_BITS16 | ESD_STREAM | ESD_PLAY | ESD_MONO; 142 esd_format_t format = ESD_BITS16 | ESD_STREAM | ESD_PLAY | ESD_MONO;
143 143
144 if (!check_dev("/dev/dsp")) return 0;
145
146 esd_fd = esd_play_stream(format, 8012, NULL, "gaim"); 144 esd_fd = esd_play_stream(format, 8012, NULL, "gaim");
147 145
148 if (esd_fd < 0) { 146 if (esd_fd < 0) {
149 return 0; 147 return 0;
150 } 148 }
264 /* Lastly, we can try just plain old /dev/audio */ 262 /* Lastly, we can try just plain old /dev/audio */
265 if (can_play_audio()) { 263 if (can_play_audio()) {
266 play_audio(data, size); 264 play_audio(data, size);
267 _exit(0); 265 _exit(0);
268 } 266 }
267
268 _exit(0);
269 } else { 269 } else {
270 gtk_timeout_add(100, (GtkFunction)clean_pid, NULL); 270 gtk_timeout_add(100, (GtkFunction)clean_pid, NULL);
271 } 271 }
272 } 272 }
273 273