summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio/ecore_audio_obj_out_pulse.h
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-08-27 23:42:24 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-08-27 23:44:53 +0900
commit12981b168e9fc094cc47bdd8c5eebfc5bbdc4001 (patch)
tree47e92db63652951289a1d63fdac89f76ebdedf68 /src/lib/ecore_audio/ecore_audio_obj_out_pulse.h
parent041e3af3e55e28bedf955ebd098813a049040f08 (diff)
ecore-audio - expose ready and fail events so multisense can avoid leaks
well well well. i WASN'T crazy. there WAS a leak. it was ecore-audio+multisense. if a pulse audio output doesn't connect... NO ONE KNOWS. all audio streams keep being appended to it forever just consuming more memory indefinitely. there is no way to handle it. expose events so it CAN be handled.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_out_pulse.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.h b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.h
index b12526cc3c..a0318316d1 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_out_pulse.h
+++ b/src/lib/ecore_audio/ecore_audio_obj_out_pulse.h
@@ -52,6 +52,28 @@ enum _Ecore_Audio_Obj_Out_Pulse_Sub_Ids
52 52
53#define ECORE_AUDIO_OBJ_OUT_PULSE_ID(sub_id) (ECORE_AUDIO_OBJ_OUT_PULSE_BASE_ID + EO_TYPECHECK(enum _Ecore_Audio_Obj_Out_Pulse_Sub_Ids, sub_id)) 53#define ECORE_AUDIO_OBJ_OUT_PULSE_ID(sub_id) (ECORE_AUDIO_OBJ_OUT_PULSE_BASE_ID + EO_TYPECHECK(enum _Ecore_Audio_Obj_Out_Pulse_Sub_Ids, sub_id))
54 54
55extern EAPI const Eo_Event_Description _ECORE_AUDIO_EV_OUT_PULSE_CONTEXT_READY;
56
57/**
58 * @brief The output context is ready
59 *
60 * @since 1.8
61 *
62 * Emitted when the outout context is ready for playback
63 */
64#define ECORE_AUDIO_EV_OUT_PULSE_CONTEXT_READY (&(_ECORE_AUDIO_EV_OUT_PULSE_CONTEXT_READY))
65
66extern EAPI const Eo_Event_Description _ECORE_AUDIO_EV_OUT_PULSE_CONTEXT_FAIL;
67
68/**
69 * @brief The output context has failed
70 *
71 * @since 1.8
72 *
73 * Emitted when the outout context has failed. At this point the output is unusable and will never work, so it is advisable to delete it.
74 */
75#define ECORE_AUDIO_EV_OUT_PULSE_CONTEXT_FAIL (&(_ECORE_AUDIO_EV_OUT_PULSE_CONTEXT_FAIL))
76
55/** 77/**
56 * @} 78 * @}
57 */ 79 */