summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-07 21:10:44 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-14 23:33:18 -0300
commit04a15339c34edd7defdad9bbb58ad296fab6f35d (patch)
tree7a2e3b83f7dd4b5eedc335d79c1ef1c73131cafa /src/bin
parentf84820c5dcecf939b3f1e3bf1f8de6dd480e4fbc (diff)
epulse: Use pulseaudio as backend
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 66cd35a..56f7524 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -1,5 +1,6 @@
1#include <common.h> 1#include <common.h>
2#include <epulse.h> 2#include <epulse.h>
3#include <emix.h>
3#include "main_window.h" 4#include "main_window.h"
4 5
5#define DEFAULT_HEIGHT 600 6#define DEFAULT_HEIGHT 600
@@ -12,15 +13,18 @@ elm_main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
12 13
13 EINA_SAFETY_ON_FALSE_RETURN_VAL(epulse_common_init("epulse"), EXIT_FAILURE); 14 EINA_SAFETY_ON_FALSE_RETURN_VAL(epulse_common_init("epulse"), EXIT_FAILURE);
14 EINA_SAFETY_ON_FALSE_RETURN_VAL(epulse_init() > 0, EXIT_FAILURE); 15 EINA_SAFETY_ON_FALSE_RETURN_VAL(epulse_init() > 0, EXIT_FAILURE);
16 EINA_SAFETY_ON_FALSE_RETURN_VAL(emix_init() == EINA_TRUE, EXIT_FAILURE);
15 17
16 win = main_window_add(); 18 win = main_window_add();
17 evas_object_resize(win, DEFAULT_WIDTH, DEFAULT_HEIGHT); 19 evas_object_resize(win, DEFAULT_WIDTH, DEFAULT_HEIGHT);
18 evas_object_show(win); 20 evas_object_show(win);
19 21
22 emix_backend_set("PULSEAUDIO");
20 elm_run(); 23 elm_run();
21 24
22 epulse_common_shutdown(); 25 epulse_common_shutdown();
23 epulse_shutdown(); 26 epulse_shutdown();
27 emix_shutdown();
24 return 0; 28 return 0;
25} 29}
26 30