Guest User

Untitled

a guest
Jan 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. // Special device which allows simulation of multiple listeners
  2. // hearing the same set of sources. Provides access to the rendered
  3. // data for each listener. Designed to work with LWJGL.
  4.  
  5. // first, the mainContext is the only context that is controlled by
  6. // LWJGL.
  7.  
  8.  
  9. // One context will be created for each listener that we want.
  10.  
  11. // Then, at the start of each render loop, we will iterate through all
  12. // the active sources in our mainContext (the one which is controlled
  13. // through LWJGL), and take their sourceIDs. For each of these IDs
  14. // and for each other context, we'll check some internal structure to
  15. // see if we've already created a corresponding source. If that
  16. // source exits, we will SYNCH it with the source which belongs to the
  17. // mainContext. If it DOESN'T exist, we will CLONE the source from the
  18. // main context and establish it in the other context.
  19.  
  20. // Each render loop consists of noting all of the active sources in
  21. // the mainContext and storing their IDs. Then, for each context,
  22. // the correspondig sources to the active sources in the mainContext
  23. // will be set to PLAY, and all sources in all other contexts will be
  24. // set to PAUSE. aluMixData will be called for each context in this
  25. // way.
Add Comment
Please, Sign In to add comment