ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT and Multiple Streams
Todd Cope

In my project I have several audio streams. When I get an ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT, how do I know which stream it belongs to?

Thomas Fjellstrom

The stream should be stored in the source field of the event. I think.

Todd Cope

Sweet. I am doing 'stream = (ALLEGRO_AUDIO_STREAM *)event.any.source' and it is working perfectly. Thanks :)

Thread #613195. Printed from Allegro.cc