summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-06-20 15:31:31 +0100
committerTom Hacohen <tom@stosb.com>2016-06-20 18:02:00 +0100
commit6202cc7485a54dea6f02a2668e7c907247902dd1 (patch)
tree7a1fa2b61175b1ef75a9bff7299a0ce3daa45216 /src/lib/ecore_audio
parentd648eb5311585f7392d0290640ba133814b52589 (diff)
Adjust the code according to the eo event stop changes.
This was changed in the previous commit.
Diffstat (limited to 'src/lib/ecore_audio')
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_out_pulse.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
index 05c42b4507..7c6db021a7 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.c
@@ -88,7 +88,7 @@ static void _write_cb(pa_stream *stream, size_t len, void *data)
88 } 88 }
89} 89}
90 90
91static Eina_Bool _update_samplerate_cb(void *data EINA_UNUSED, const Eo_Event *event) 91static void _update_samplerate_cb(void *data EINA_UNUSED, const Eo_Event *event)
92{ 92{
93 pa_stream *stream = NULL; 93 pa_stream *stream = NULL;
94 int samplerate = 0; 94 int samplerate = 0;
@@ -100,8 +100,6 @@ static Eina_Bool _update_samplerate_cb(void *data EINA_UNUSED, const Eo_Event *e
100 stream = eo_key_data_get(event->object, "pulse_data"); 100 stream = eo_key_data_get(event->object, "pulse_data");
101 101
102 pa_operation_unref(pa_stream_update_sample_rate(stream, samplerate * speed, NULL, NULL)); 102 pa_operation_unref(pa_stream_update_sample_rate(stream, samplerate * speed, NULL, NULL));
103
104 return EINA_TRUE;
105} 103}
106 104
107static Eina_Bool _input_attach_internal(Eo *eo_obj, Eo *in) 105static Eina_Bool _input_attach_internal(Eo *eo_obj, Eo *in)
@@ -146,14 +144,12 @@ static Eina_Bool _input_attach_internal(Eo *eo_obj, Eo *in)
146 return ret; 144 return ret;
147} 145}
148 146
149static Eina_Bool _delayed_attach_cb(void *data, const Eo_Event *event) 147static void _delayed_attach_cb(void *data, const Eo_Event *event)
150{ 148{
151 Eo *in = data; 149 Eo *in = data;
152 eo_event_callback_del(event->object, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_READY, _delayed_attach_cb, in); 150 eo_event_callback_del(event->object, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_READY, _delayed_attach_cb, in);
153 151
154 _input_attach_internal(event->object, in); 152 _input_attach_internal(event->object, in);
155
156 return EINA_TRUE;
157} 153}
158 154
159EOLIAN static Eina_Bool 155EOLIAN static Eina_Bool