[AD] Audio events |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
I need to get some events from the audio driver. Right now the only platform where they really should matter (except maybe the route change event) is on iOS. However I'd like to hear from anyone who knows if and how these events work on Android or other platforms (phones?). The events I'm sending now are here, they don't require any data: ALLEGRO_AUDIO_EVENT_ROUTE_CHANGE - change from speakers to headphones or something like that, might need to restart audio ALLEGRO_AUDIO_EVENT_BEGIN_INTERRUPTION - audio interrupted, for example by phone call ALLEGRO_AUDIO_EVENT_END_INTERRUPTION - phone call or other interrupting entity has ended and sound can resume playback Another thing I want to know is how to use event queues in addons. I looked at the addons and couldn't see any that used event queues. Do I need to use user event queues or can I use core queues? The patch I'm using right now is below but events would be ideal for this. Trent
Attachment:
audio_events.diff
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |