comparison src/sound.c @ 1805:caa605e70917

[gaim-migrate @ 1815] i have that sting song, the one they play in the mercedes commercial, stuck in my head. what the hell are the words to that song. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 05 May 2001 10:36:08 +0000
parents bea407767ac1
children 3366311426df
comparison
equal deleted inserted replaced
1804:c7b288ea3892 1805:caa605e70917
174 174
175 return 1; 175 return 1;
176 176
177 } 177 }
178 178
179 static int play_esd_file(char *file)
180 {
181 int esd_stat;
182 int fd = open(file, O_RDONLY);
183 if (fd <= 0)
184 return 0;
185 esd_stat = esd_play_file(NULL, file, 1);
186 return esd_stat;
187 }
188
189 static int can_play_esd() 179 static int can_play_esd()
190 { 180 {
191 esd_format_t format = ESD_BITS16 | ESD_STREAM | ESD_PLAY | ESD_MONO; 181 esd_format_t format = ESD_BITS16 | ESD_STREAM | ESD_PLAY | ESD_MONO;
192 182
193 esd_fd = esd_play_stream(format, 8012, NULL, "gaim"); 183 esd_fd = esd_play_stream(format, 8012, NULL, "gaim");
327 args[3] = NULL; 317 args[3] = NULL;
328 execvp(args[0], args); 318 execvp(args[0], args);
329 _exit(0); 319 _exit(0);
330 } 320 }
331 #ifdef ESD_SOUND 321 #ifdef ESD_SOUND
332 if (play_esd_file(filename)) 322 if (esd_play_file(NULL, filename, 1))
333 _exit(0); 323 _exit(0);
334 #endif 324 #endif
335 325
336 #ifdef NAS_SOUND 326 #ifdef NAS_SOUND
337 if (play_nas_file(filename)) 327 if (play_nas_file(filename))