From d2d93a4577842fe5c1369fdbd7db4599a8b01448 Mon Sep 17 00:00:00 2001 From: "rafael@riseup.net" Date: Thu, 7 Apr 2011 03:55:32 +0000 Subject: [PATCH] added aacp as audio codec and adjusted some window size --- darkice-gui/trunk/config_files.c | 2 ++ darkice-gui/trunk/constants.h | 4 ++-- darkice-gui/trunk/darksnow.c | 3 ++- darkice-gui/trunk/interface.c | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/darkice-gui/trunk/config_files.c b/darkice-gui/trunk/config_files.c index 25b9f2c..3433bd9 100644 --- a/darkice-gui/trunk/config_files.c +++ b/darkice-gui/trunk/config_files.c @@ -277,6 +277,8 @@ gboolean darksnow2darkice_cfg() { fprintf(f_darkice_cfg, "aac"); else if (!strcmp( gettext("mp2"), format)) fprintf(f_darkice_cfg, "mp2"); + else if (!strcmp( gettext("aacp"), format)) + fprintf(f_darkice_cfg, "aacp"); } fprintf(f_darkice_cfg, "\nbitrate = "); diff --git a/darkice-gui/trunk/constants.h b/darkice-gui/trunk/constants.h index 5d04b65..85ace81 100644 --- a/darkice-gui/trunk/constants.h +++ b/darkice-gui/trunk/constants.h @@ -20,6 +20,6 @@ #define __CONSTANTS_H__ /* the size of main window */ -#define SIZE_X 450 -#define SIZE_Y 465 +#define SIZE_X 480 +#define SIZE_Y 505 diff --git a/darkice-gui/trunk/darksnow.c b/darkice-gui/trunk/darksnow.c index d0cc21f..1e72d39 100644 --- a/darkice-gui/trunk/darksnow.c +++ b/darkice-gui/trunk/darksnow.c @@ -182,7 +182,7 @@ int main( int argc, char *argv[], char *envp[]) { /* sets up the about dialog */ - sprintf(bar, gettext("DarkSnow version: %s\nSoftware written by Rafael Diniz\nLicense: GNU Public License v2"),VERSION); + sprintf(bar, gettext("DarkSnow version: %s\nSoftware written by Rafael Diniz\nLicense: GNU Public License v3"),VERSION); dialog_about = gtk_dialog_new (); label_about = gtk_label_new ( bar ); button_about = gtk_button_new_with_label ( gettext("Close")); @@ -282,6 +282,7 @@ int main( int argc, char *argv[], char *envp[]) { glist_format = g_list_append (glist_format, gettext("ogg/vorbis")); glist_format = g_list_append (glist_format, gettext("aac")); glist_format = g_list_append (glist_format, gettext("mp2")); + glist_format = g_list_append (glist_format, gettext("aacp")); gtk_combo_set_popdown_strings (GTK_COMBO (combo_format), glist_format); diff --git a/darkice-gui/trunk/interface.c b/darkice-gui/trunk/interface.c index 9ff7e70..b9a4857 100644 --- a/darkice-gui/trunk/interface.c +++ b/darkice-gui/trunk/interface.c @@ -76,7 +76,7 @@ void dark_start( GtkWidget *widget, gpointer data) { strcat(command, darkice_verbosity); strcat(command," -c "); strcat(command, darkice_cfg); - strcat(command," &> "); + strcat(command," > "); strcat(command, darksnow_temp);