added opus support and fixed a longstanding bug
This commit is contained in:
parent
78f9bf2894
commit
0c92e04b80
|
@ -256,13 +256,13 @@ gboolean darksnow2darkice_cfg() {
|
|||
|
||||
/* write bitratemode */
|
||||
fprintf(f_darkice_cfg, "\nbitrateMode = ");
|
||||
if (!strcmp( gettext("Constant"), bitratemode))
|
||||
if (!strcmp("Constant", bitratemode))
|
||||
fprintf(f_darkice_cfg, "cbr"); /* Constant bitrate mode */
|
||||
else
|
||||
if (!strcmp( gettext("Average"), bitratemode))
|
||||
if (!strcmp("Average", bitratemode))
|
||||
fprintf(f_darkice_cfg, "abr"); /* average bitrate mode */
|
||||
else
|
||||
if (!strcmp( gettext("Variable"), bitratemode))
|
||||
if (!strcmp("Variable", bitratemode))
|
||||
fprintf(f_darkice_cfg, "vbr"); /* variable bitrate mode */
|
||||
|
||||
|
||||
|
@ -273,6 +273,8 @@ gboolean darksnow2darkice_cfg() {
|
|||
fprintf(f_darkice_cfg, "mp3");
|
||||
else if (!strcmp( gettext("ogg/vorbis"), format))
|
||||
fprintf(f_darkice_cfg, "vorbis");
|
||||
else if (!strcmp( gettext("ogg/opus"), format))
|
||||
fprintf(f_darkice_cfg, "opus");
|
||||
else if (!strcmp( gettext("aac"), format))
|
||||
fprintf(f_darkice_cfg, "aac");
|
||||
else if (!strcmp( gettext("mp2"), format))
|
||||
|
|
|
@ -296,6 +296,7 @@ int main( int argc, char *argv[], char *envp[]) {
|
|||
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_format), gettext("aac"));
|
||||
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_format), gettext("mp2"));
|
||||
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_format), gettext("aacp"));
|
||||
gtk_combo_box_text_append_text ( GTK_COMBO_BOX_TEXT (combo_format), gettext("ogg/opus"));
|
||||
gtk_entry_set_text (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (combo_format))),"ogg/vorbis");
|
||||
|
||||
label_bitratemode = gtk_label_new ( gettext("BitRateMode: "));
|
||||
|
|
Loading…
Reference in New Issue