gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
}
-void toggle_audio_output_device(void) {
- // n_output_devices holds the number of output devices (global -
- // aargh!!)
- int out_index = gtk_combo_box_get_active(GTK_COMBO_BOX(output));
-
- // toggle
- out_index = (out_index + 1) % n_output_devices;
-
- // set the other device as active
- gtk_combo_box_set_active(GTK_COMBO_BOX(output), out_index);
-}
-
//
// possible the device has been changed:
// call audo_close_output with old device, audio_open_output with new one
active_receiver->id, active_receiver->local_audio);
}
+void toggle_audio_output_device(void) {
+ // n_output_devices holds the number of output devices (global -
+ // aargh!!)
+ int out_index = gtk_combo_box_get_active(GTK_COMBO_BOX(output));
+
+ // toggle
+ out_index = (out_index + 1) % n_output_devices;
+
+ // set the other device as active
+ gtk_combo_box_set_active(GTK_COMBO_BOX(output), out_index);
+
+ local_output_changed_cb(GTK_COMBO_BOX(output), NULL);
+}
+
static void audio_channel_cb(GtkWidget *widget, gpointer data) {
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) {
active_receiver->audio_channel = GPOINTER_TO_INT(data);