set device into GUI mode
This commit is contained in:
6
gdigi.c
6
gdigi.c
@@ -653,9 +653,15 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (device != NULL) {
|
if (device != NULL) {
|
||||||
|
/* enable GUI mode */
|
||||||
|
set_option(GUI_MODE_ON_OFF, USB_POSITION, 1);
|
||||||
|
|
||||||
gui_create(device);
|
gui_create(device);
|
||||||
gtk_main();
|
gtk_main();
|
||||||
gui_free();
|
gui_free();
|
||||||
|
|
||||||
|
/* disable GUI mode */
|
||||||
|
set_option(GUI_MODE_ON_OFF, USB_POSITION, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
gdigi.h
2
gdigi.h
@@ -610,6 +610,8 @@ enum {
|
|||||||
#define USB_AUDIO_PLAYBACK_MIX 12297
|
#define USB_AUDIO_PLAYBACK_MIX 12297
|
||||||
#define USB_AUDIO_LEVEL 12307
|
#define USB_AUDIO_LEVEL 12307
|
||||||
|
|
||||||
|
#define GUI_MODE_ON_OFF 12298
|
||||||
|
|
||||||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|||||||
Reference in New Issue
Block a user