Register multiple events to one callback

Is it possible to register multiple events to one callback ?

In the specific I need to register SL_PLAYEVENT_HEADATNEWPOS and SL_PLAYEVENT_HEADATEND for PlayItf

Is this possible?

Hi Stefano,

OpenSL ES does not support multiple callbacks for a single event. I suggest that you create a single callback for the event which in turn calls your various callbacks. That way you can control the order in which your callbacks get called.

Best,

Erik