summaryrefslogtreecommitdiff
path: root/src/bin/ui/sound_player/sound_player.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ui/sound_player/sound_player.c')
-rw-r--r--src/bin/ui/sound_player/sound_player.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/bin/ui/sound_player/sound_player.c b/src/bin/ui/sound_player/sound_player.c
index f5d317d..eac229e 100644
--- a/src/bin/ui/sound_player/sound_player.c
+++ b/src/bin/ui/sound_player/sound_player.c
@@ -157,9 +157,9 @@ _on_rewin_cb(void *data __UNUSED__,
157static void 157static void
158_create_io_stream() 158_create_io_stream()
159{ 159{
160 in = efl_add(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL); 160 in = efl_add_ref(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL);
161 assert(in != NULL); 161 assert(in != NULL);
162 out = efl_add(ECORE_AUDIO_OUT_PULSE_CLASS, NULL); 162 out = efl_add_ref(ECORE_AUDIO_OUT_PULSE_CLASS, NULL);
163 assert(out != NULL); 163 assert(out != NULL);
164 efl_event_callback_add(out, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, 164 efl_event_callback_add(out, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL,
165 _out_fail, NULL); 165 _out_fail, NULL);
@@ -177,7 +177,7 @@ _tone_play()
177 177
178 if (!in) 178 if (!in)
179 { 179 {
180 in = efl_add(ECORE_AUDIO_IN_TONE_CLASS, NULL); 180 in = efl_add_ref(ECORE_AUDIO_IN_TONE_CLASS, NULL);
181 ecore_audio_obj_name_set(in, tone->common.name); 181 ecore_audio_obj_name_set(in, tone->common.name);
182 efl_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &tone->freq); 182 efl_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &tone->freq);
183 ecore_audio_obj_in_length_set(in, TONE_PLAYING_DURATION); 183 ecore_audio_obj_in_length_set(in, TONE_PLAYING_DURATION);
@@ -186,7 +186,7 @@ _tone_play()
186 } 186 }
187 187
188 if (!out) 188 if (!out)
189 out = efl_add(ECORE_AUDIO_OUT_PULSE_CLASS, NULL, 189 out = efl_add_ref(ECORE_AUDIO_OUT_PULSE_CLASS, NULL,
190 efl_event_callback_add(efl_added, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL, 190 efl_event_callback_add(efl_added, ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL,
191 _out_fail, NULL)); 191 _out_fail, NULL));
192 192
@@ -194,7 +194,6 @@ _tone_play()
194 if (!ret) 194 if (!ret)
195 { 195 {
196 ERR("Couldn't attach input and output!"); 196 ERR("Couldn't attach input and output!");
197 abort();
198 } 197 }
199 elm_slider_min_max_set(rewin, 0.0, TONE_PLAYING_DURATION); 198 elm_slider_min_max_set(rewin, 0.0, TONE_PLAYING_DURATION);
200 elm_slider_value_set(rewin, 0.0); 199 elm_slider_value_set(rewin, 0.0);