Displaying 3 results from an estimated 3 matches for "temp_driver_id".
2001 Mar 10
0
patch to add device-option to ogg123 rc file
...3/ogg123.c vorbis-tools-1.0beta4-modified/ogg123/ogg123.c
--- vorbis-tools-1.0beta4/ogg123/ogg123.c Fri Feb 23 16:52:22 2001
+++ vorbis-tools-1.0beta4-modified/ogg123/ogg123.c Sat Mar 10 03:15:28 2001
@@ -168,7 +168,7 @@
/* Add last device to device list or use the default device */
if (temp_driver_id < 0) {
- temp_driver_id = get_default_device();
+ temp_driver_id = get_configs(current_options);
if(temp_driver_id < 0) {
temp_driver_id = ao_get_driver_id(NULL);
}
diff -u vorbis-tools-1.0beta4/ogg123/ogg123.h vorbis-tools-1.0beta4-modified/ogg123/ogg123.h...
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...+{
+ 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;
int temp_driver_id = -1;
- devices *current;
- int bits, rate, channels;
ao_initialize();
@@ -291,37 +341,22 @@
exit (1);
}
- /* Open all of the devices */
- bits = 16;
- rate = 44100;
- channels = 2;
- current = param.outdevices;
-
- if (param.quiet < 1)
- fprintf(stderr, "Open...
2002 Oct 05
2
ogg123 remote interface
..."b:c::d:f:hl:k:o:p:qRTvVx:y:z@:",
+ while (-1 != (ret = getopt_long(argc, argv, "b:c::d:f:hl:k:o:p:qRtTvVx:y:z@:",
long_options, &option_index))) {
switch (ret) {
@@ -173,6 +174,17 @@
ogg123_opts->verbosity = 0;
break;
+
+ case 't':
+ temp_driver_id = ao_driver_id("null");
+ if (temp_driver_id < 0) {
+ status_error(_("=== No such device null.\n"), optarg);
+ exit(1);
+ }
+ free_audio_devices(ogg123_opts->devices);
+ ogg123_opts->devices = append_audio_device(NULL, temp_driver_id, NULL, NULL);
+ current_opti...