Displaying 1 result from an estimated 1 matches for "close_devices".
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...->options);
+ if (current->device == NULL)
+ {
+ fprintf(stderr, "Error opening device.\n");
+ exit(1);
+ }
+ if (param.quiet < 1)
+ fprintf(stderr, "\n"); // Gotta keep 'em separated ...
+
+ current = current->next_device;
+ }
+}
+
+void close_devices(void)
+{
+ devices *current;
+
+ current = param.outdevices;
+
+ while(current != NULL)
+ {
+ ao_close(current->device);
+ current = current->next_device;
+ }
+}
+
int
main (int argc, char **argv)
{
@@ -207,8 +259,6 @@
int option_index = 1;
ao_option_t *temp_options = NULL;...