You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Doc_BoxAlgorithm_HelloWorldGames.dox-part 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /**
  2. * \page BoxAlgorithm_HelloWorldGames Hello World Games
  3. __________________________________________________________________
  4. Detailed description
  5. __________________________________________________________________
  6. * |OVP_DocBegin_BoxAlgorithm_HelloWorldGames_Description|
  7. This box forwards the signals and stimulations it gets to two corresponding LabStreamingLayer (LSL) streams.
  8. This stream can be read by the Unity Games Hello World here : https://gitlab.inria.fr/openvibe/unity-games/hello-world
  9. Remarks : It is currently impossible to send and receive information by LSL in the same scenario.
  10. Indeed, the LSL library waits to receive its flow (or gives up) before moving on. In addition, OpenViBE is not multi-process.
  11. It blocks until it has received its flow (or gives up).
  12. It is therefore advisable to launch the transmitter before the receiver.
  13. Or plan for a shorter but repeated stream search after launch in the event of a startup failure.
  14. * |OVP_DocEnd_BoxAlgorithm_HelloWorldGames_Description|
  15. __________________________________________________________________
  16. Inputs description
  17. __________________________________________________________________
  18. * |OVP_DocBegin_BoxAlgorithm_HelloWorldGames_Inputs|
  19. * |OVP_DocEnd_BoxAlgorithm_HelloWorldGames_Inputs|
  20. *
  21. * |OVP_DocBegin_BoxAlgorithm_HelloWorldGames_Input1|
  22. The signal input stream.
  23. * |OVP_DocEnd_BoxAlgorithm_HelloWorldGames_Input1|
  24. * |OVP_DocBegin_BoxAlgorithm_HelloWorldGames_Input2|
  25. The stimulation input stream.
  26. * |OVP_DocEnd_BoxAlgorithm_HelloWorldGames_Input2|
  27. __________________________________________________________________
  28. Settings description
  29. __________________________________________________________________
  30. * |OVP_DocBegin_BoxAlgorithm_HelloWorldGames_Settings|
  31. * |OVP_DocEnd_BoxAlgorithm_HelloWorldGames_Settings|
  32. *
  33. __________________________________________________________________
  34. Examples description
  35. __________________________________________________________________
  36. * |OVP_DocBegin_BoxAlgorithm_HelloWorldGames_Examples|
  37. Easiest way to test the box is to use a time signal box with a simple DSP sin(x) and a Clock Stimulation with stimulation `OVTK_StimulationId_Label_00`. Run the Scenario, next run the Game.
  38. * |OVP_DocEnd_BoxAlgorithm_HelloWorldGames_Examples|
  39. __________________________________________________________________
  40. Miscellaneous description
  41. __________________________________________________________________
  42. * |OVP_DocBegin_BoxAlgorithm_HelloWorldGames_Miscellaneous|
  43. The box creates each LSL stream at the beginning of the playback, after it has received its corresponding OpenViBE stream header information. Hence, if either signal or stimulus socket
  44. of the box is not connected or does not receive a header, the box will not create the corresponding LSL stream.
  45. Stream formats: The signal stream is continuous float. The stimulation stream is noncontinuous int, and each 64bit OpenViBE stimulation is truncated to an int marker.
  46. * |OVP_DocEnd_BoxAlgorithm_HelloWorldGames_Miscellaneous|
  47. */