static int g_menu_state = CURRENT_STATUS_MAINMENU;
-GMainLoop* g_loop;
-sound_device_list_h g_device_list = NULL;
-sound_device_h g_device = NULL;
-sound_device_mask_e g_device_mask = SOUND_DEVICE_ALL_MASK;
-sound_stream_info_h g_stream_info_h = NULL;
-virtual_sound_stream_h g_vstream_h = NULL;
-sound_stream_ducking_h g_stream_ducking_h = NULL;
-int g_volume_cb_id;
-int g_internal_volume_cb_id;
-int g_device_conn_cb_id;
-int g_device_running_cb_id;
+static GMainLoop* g_loop;
+static sound_device_list_h g_device_list = NULL;
+static sound_device_h g_device = NULL;
+static sound_device_mask_e g_device_mask = SOUND_DEVICE_ALL_MASK;
+static sound_stream_info_h g_stream_info_h = NULL;
+static virtual_sound_stream_h g_vstream_h = NULL;
+static sound_stream_ducking_h g_stream_ducking_h = NULL;
+static int g_volume_cb_id;
+static int g_internal_volume_cb_id;
+static int g_device_conn_cb_id;
+static int g_device_running_cb_id;
static const char g_running_str[] = { 'x', 'o' };
static const char *g_device_direction_str[] = {"IN", "OUT", "BOTH"};