Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT and Multiple Streams

Credits go to Thomas Fjellstrom for helping out!
This thread is locked; no one can reply to it. rss feed Print
ALLEGRO_EVENT_AUDIO_STREAM_FRAGMENT and Multiple Streams
Todd Cope
Member #998
November 2000
avatar

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
Member #476
June 2000
avatar

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

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Todd Cope
Member #998
November 2000
avatar

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

Go to: