Skip to content
Snippets Groups Projects
Commit effbc403 authored by Yun Liu's avatar Yun Liu
Browse files

Fix bug in configuration page when switch from pulseaudio to alsa

parent 4aea92a9
Branches
No related tags found
No related merge requests found
......@@ -604,6 +604,7 @@ select_audio_manager( void )
if( !SHOW_ALSA_CONF && !gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(pulse) ) )
{
dbus_set_audio_manager( ALSA );
g_print(" display alsa conf panel\n");
alsabox = alsa_box();
gtk_container_add( GTK_CONTAINER(alsa_conf ) , alsabox);
......@@ -611,13 +612,14 @@ select_audio_manager( void )
}
else if( SHOW_ALSA_CONF && gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(pulse) ))
{
dbus_set_audio_manager( PULSEAUDIO );
g_print(" remove alsa conf panel\n");
gtk_container_remove( GTK_CONTAINER(alsa_conf) , alsabox );
}
else
g_print("alsa conf panel...nothing\n");
gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(pulse) )? dbus_set_audio_manager( PULSEAUDIO ):dbus_set_audio_manager( ALSA );
//gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(pulse) )? dbus_set_audio_manager( PULSEAUDIO ):dbus_set_audio_manager( ALSA );
}
GtkWidget* api_box()
......
......@@ -52,6 +52,7 @@ PulseLayer::closeLayer( void )
record->disconnect();
pa_context_disconnect( context );
pa_context_unref( context );
sleep(2);
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment