Mercurial > audlegacy-plugins
comparison src/bluetooth/bluetooth.c @ 2854:43557eb3180f
playback
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Wed, 30 Jul 2008 17:49:43 +0300 |
parents | 671cdfc2d62d |
children | 162766a69f12 |
comparison
equal
deleted
inserted
replaced
2853:fed560b80720 | 2854:43557eb3180f |
---|---|
19 #include "bluetooth.h" | 19 #include "bluetooth.h" |
20 #include "marshal.h" | 20 #include "marshal.h" |
21 #include "gui.h" | 21 #include "gui.h" |
22 #include "scan_gui.h" | 22 #include "scan_gui.h" |
23 #include "agent.h" | 23 #include "agent.h" |
24 #include "../alsa/alsa.h" | |
24 #define DEBUG 1 | 25 #define DEBUG 1 |
25 static gboolean plugin_active = FALSE,exiting=FALSE; | 26 static gboolean plugin_active = FALSE,exiting=FALSE; |
26 GList * current_device = NULL; | 27 GList * current_device = NULL; |
27 gint config = 0; | 28 gint config = 0; |
28 gint devices_no = 0; | 29 gint devices_no = 0; |
146 close_window(); | 147 close_window(); |
147 show_scan(1); | 148 show_scan(1); |
148 } | 149 } |
149 | 150 |
150 | 151 |
152 void play_call() | |
153 { | |
154 // static GFile *asoundrc; | |
155 | |
156 | |
157 | |
158 mcs_handle_t *cfgfile = aud_cfg_db_open(); | |
159 | |
160 aud_cfg_db_set_int(cfgfile, ALSA_CFGID, "buffer_time", 500); | |
161 aud_cfg_db_set_int(cfgfile, ALSA_CFGID, "period_time", 100); | |
162 aud_cfg_db_set_string(cfgfile,ALSA_CFGID,"pcm_device", "bt"); | |
163 aud_cfg_db_set_int(cfgfile, ALSA_CFGID, "mixer_card", 0); | |
164 aud_cfg_db_set_string(cfgfile,ALSA_CFGID,"mixer_device", "PCM"); | |
165 aud_cfg_db_set_int(cfgfile, ALSA_CFGID, "volume_left", 100); | |
166 aud_cfg_db_set_int(cfgfile, ALSA_CFGID, "volume_right", 100); | |
167 aud_cfg_db_close(cfgfile); | |
168 | |
169 printf("play callback\n"); | |
170 | |
171 | |
172 } | |
173 | |
174 | |
151 static void remote_device_found(DBusGProxy *object, char *address, const unsigned int class, const int rssi, gpointer user_data) | 175 static void remote_device_found(DBusGProxy *object, char *address, const unsigned int class, const int rssi, gpointer user_data) |
152 { | 176 { |
153 int found_in_list=FALSE; | 177 int found_in_list=FALSE; |
154 g_static_mutex_lock(&mutex); | 178 g_static_mutex_lock(&mutex); |
155 current_device = audio_devices; | 179 current_device = audio_devices; |