summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-06-19 22:17:30 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-14 23:33:17 -0300
commit4ad9b4ec3658085e5e1d0e5ac088a3eeff50137e (patch)
tree3e31efbce7e1bc24ef4a674cfa65feea1a18d9d7 /src
parent7c4bf1e07ef110b187965f5806a3658ff21f840c (diff)
emix: Adding support for sink's port
Sink's port and fixing the volume field.
Diffstat (limited to 'src')
-rw-r--r--src/lib/backends/alsa/alsa.c1
-rw-r--r--src/lib/emix.h15
2 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/backends/alsa/alsa.c b/src/lib/backends/alsa/alsa.c
index b2b42fb..77f7fb0 100644
--- a/src/lib/backends/alsa/alsa.c
+++ b/src/lib/backends/alsa/alsa.c
@@ -47,6 +47,7 @@ _alsa_backend = {
47 NULL, 47 NULL,
48 NULL, 48 NULL,
49 NULL, 49 NULL,
50 NULL,
50 NULL 51 NULL
51}; 52};
52 53
diff --git a/src/lib/emix.h b/src/lib/emix.h
index 06638b1..4a7d821 100644
--- a/src/lib/emix.h
+++ b/src/lib/emix.h
@@ -14,22 +14,29 @@ typedef struct _Emix_Volume {
14 int *volumes; 14 int *volumes;
15} Emix_Volume; 15} Emix_Volume;
16 16
17typedef struct _Emix_Port {
18 Eina_Bool active;
19 Eina_Bool available;
20 const char *name;
21 const char *description;
22} Emix_Port;
23
17typedef struct _Emix_Sink { 24typedef struct _Emix_Sink {
18 const char *name; 25 const char *name;
19 Emix_Volume *volume; 26 Emix_Volume volume;
20 Eina_Bool mute; 27 Eina_Bool mute;
21} Emix_Sink; 28} Emix_Sink;
22 29
23typedef struct _Emix_Sink_Input { 30typedef struct _Emix_Sink_Input {
24 const char *name; 31 const char *name;
25 Emix_Volume *volume; 32 Emix_Volume volume;
26 Eina_Bool mute; 33 Eina_Bool mute;
27 Emix_Sink *sink; 34 Emix_Sink *sink;
28} Emix_Sink_Input; 35} Emix_Sink_Input;
29 36
30typedef struct _Emix_Source { 37typedef struct _Emix_Source {
31 const char *name; 38 const char *name;
32 Emix_Volume *volume; 39 Emix_Volume volume;
33 Eina_Bool mute; 40 Eina_Bool mute;
34} Emix_Source; 41} Emix_Source;
35 42
@@ -60,6 +67,8 @@ typedef struct _Emix_Backend {
60 Eina_Bool mute); 67 Eina_Bool mute);
61 void (*ebackend_sink_volume_set)(Emix_Sink *sink, 68 void (*ebackend_sink_volume_set)(Emix_Sink *sink,
62 Emix_Volume volume); 69 Emix_Volume volume);
70 void (*ebackend_sink_port_set)(Emix_Sink *sink,
71 const Emix_Port *port);
63 Eina_Bool (*ebackend_sink_change_support)(void); 72 Eina_Bool (*ebackend_sink_change_support)(void);
64 73
65 const Eina_List* (*ebackend_sink_inputs_get)(void); 74 const Eina_List* (*ebackend_sink_inputs_get)(void);