Mercurial > audlegacy
comparison Plugins/Input/mpg123/configure.c @ 558:3fb3657d2e14 trunk
[svn] - Update mpg123 configure options
- Update NEWS.
author | nenolod |
---|---|
date | Wed, 01 Feb 2006 13:57:44 -0800 |
parents | f394090439df |
children | 59602b2e2781 |
comparison
equal
deleted
inserted
replaced
557:3260cb29e366 | 558:3fb3657d2e14 |
---|---|
20 *decode_res_8; | 20 *decode_res_8; |
21 static GtkWidget *decode_ch_frame, *decode_ch_vbox, *decode_ch_stereo, | 21 static GtkWidget *decode_ch_frame, *decode_ch_vbox, *decode_ch_stereo, |
22 *decode_ch_mono; | 22 *decode_ch_mono; |
23 static GtkWidget *decode_freq_frame, *decode_freq_vbox, *decode_freq_1to1, | 23 static GtkWidget *decode_freq_frame, *decode_freq_vbox, *decode_freq_1to1, |
24 *decode_freq_1to2, *decode_freq_1to4; | 24 *decode_freq_1to2, *decode_freq_1to4; |
25 static GtkWidget *option_frame, *option_vbox, *detect_by_content, | 25 static GtkWidget *option_frame, *option_vbox; |
26 *detect_by_extension, *detect_by_both; | |
27 | 26 |
28 static GtkObject *streaming_size_adj, *streaming_pre_adj; | 27 static GtkObject *streaming_size_adj, *streaming_pre_adj; |
29 static GtkWidget *streaming_proxy_use, *streaming_proxy_host_entry; | 28 static GtkWidget *streaming_proxy_use, *streaming_proxy_host_entry; |
30 static GtkWidget *streaming_proxy_port_entry, *streaming_save_use, | 29 static GtkWidget *streaming_proxy_port_entry, *streaming_save_use, |
31 *streaming_save_entry; | 30 *streaming_save_entry; |
66 else if (GTK_TOGGLE_BUTTON(decode_freq_1to2)->active) | 65 else if (GTK_TOGGLE_BUTTON(decode_freq_1to2)->active) |
67 mpg123_cfg.downsample = 1; | 66 mpg123_cfg.downsample = 1; |
68 if (GTK_TOGGLE_BUTTON(decode_freq_1to4)->active) | 67 if (GTK_TOGGLE_BUTTON(decode_freq_1to4)->active) |
69 mpg123_cfg.downsample = 2; | 68 mpg123_cfg.downsample = 2; |
70 | 69 |
71 if (GTK_TOGGLE_BUTTON(detect_by_content)->active) | 70 mpg123_cfg.detect_by = DETECT_CONTENT; |
72 mpg123_cfg.detect_by = DETECT_CONTENT; | |
73 else if (GTK_TOGGLE_BUTTON(detect_by_extension)->active) | |
74 mpg123_cfg.detect_by = DETECT_EXTENSION; | |
75 else if (GTK_TOGGLE_BUTTON(detect_by_both)->active) | |
76 mpg123_cfg.detect_by = DETECT_BOTH; | |
77 else | |
78 mpg123_cfg.detect_by = DETECT_EXTENSION; | |
79 | 71 |
80 mpg123_cfg.http_buffer_size = | 72 mpg123_cfg.http_buffer_size = |
81 (gint) GTK_ADJUSTMENT(streaming_size_adj)->value; | 73 (gint) GTK_ADJUSTMENT(streaming_size_adj)->value; |
82 mpg123_cfg.http_prebuffer = | 74 mpg123_cfg.http_prebuffer = |
83 (gint) GTK_ADJUSTMENT(streaming_pre_adj)->value; | 75 (gint) GTK_ADJUSTMENT(streaming_pre_adj)->value; |
412 TRUE); | 404 TRUE); |
413 | 405 |
414 gtk_box_pack_start(GTK_BOX(decode_freq_vbox), decode_freq_1to4, FALSE, | 406 gtk_box_pack_start(GTK_BOX(decode_freq_vbox), decode_freq_1to4, FALSE, |
415 FALSE, 0); | 407 FALSE, 0); |
416 | 408 |
417 option_frame = gtk_frame_new(_("Options")); | |
418 gtk_box_pack_start(GTK_BOX(decode_vbox), option_frame, FALSE, FALSE, 0); | |
419 | |
420 option_vbox = gtk_vbox_new(FALSE, 5); | |
421 gtk_container_set_border_width(GTK_CONTAINER(option_vbox), 5); | |
422 gtk_container_add(GTK_CONTAINER(option_frame), option_vbox); | |
423 | |
424 detect_by_content = gtk_radio_button_new_with_label(NULL, _("Content")); | |
425 | |
426 detect_by_extension = | |
427 gtk_radio_button_new_with_label(gtk_radio_button_group | |
428 (GTK_RADIO_BUTTON | |
429 (detect_by_content)), | |
430 _("Extension")); | |
431 | |
432 detect_by_both = | |
433 gtk_radio_button_new_with_label(gtk_radio_button_group | |
434 (GTK_RADIO_BUTTON | |
435 (detect_by_content)), | |
436 _("Extension and content")); | |
437 | |
438 switch (mpg123_cfg.detect_by) { | |
439 case DETECT_CONTENT: | |
440 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(detect_by_content), | |
441 TRUE); | |
442 break; | |
443 case DETECT_BOTH: | |
444 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(detect_by_both), TRUE); | |
445 break; | |
446 case DETECT_EXTENSION: | |
447 default: | |
448 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON | |
449 (detect_by_extension), TRUE); | |
450 break; | |
451 } | |
452 | |
453 gtk_box_pack_start(GTK_BOX(option_vbox), detect_by_content, FALSE, | |
454 FALSE, 0); | |
455 gtk_box_pack_start(GTK_BOX(option_vbox), detect_by_extension, FALSE, | |
456 FALSE, 0); | |
457 gtk_box_pack_start(GTK_BOX(option_vbox), detect_by_both, FALSE, FALSE, 0); | |
458 | |
459 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), decode_vbox, | 409 gtk_notebook_append_page(GTK_NOTEBOOK(notebook), decode_vbox, |
460 gtk_label_new(_("Decoder"))); | 410 gtk_label_new(_("Decoder"))); |
461 | 411 |
462 streaming_vbox = gtk_vbox_new(FALSE, 0); | 412 streaming_vbox = gtk_vbox_new(FALSE, 0); |
463 | 413 |