<html><head></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:16px"><div id="yiv1469443428"><div id="yui_3_16_0_ym19_1_1485293974139_23723"><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:16px;" id="yui_3_16_0_ym19_1_1485293974139_23722"><div id="yiv1469443428"><div id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_11567"><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:16px;" id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_11566"><div id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_11565">Hi all,</div><div id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_7546"><br></div><div dir="ltr" id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_7612">I'm working on a simple DAW program for Linux. The program constists of a sound synthesis server written in C++ and a gui program in Ocaml. So fare I have incorporated Calf, Guitarix and AMSynth in the program and have started on the x42 plugins. As an exercise, I started incorporating the eg-scope (examploscope). Now I have two questions about examploscope:</div><div dir="ltr" id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_7711"><div dir="ltr" id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_11613">In the port_event function in examploscope_ui.c it says: This is called by the host, typically at a rate of around 25 FPS. <br></div><div dir="ltr" id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_11732">Is this something that applies to all gui port_event functions? What should be the arguments to this function in case, for example, the audio synthesis is not running?</div><div dir="ltr" id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_11731">Also, in the port_event function, the atom object is tested for either raw audio or ui state. But the run() function in examploscope.c can forge two atoms after another in the buffer, one containing ui state and the second containing audio data. This would cause the audio data to be lost for the ui. Is this right, or have I missed something? <br></div><div dir="ltr" id="yiv1469443428yui_3_16_0_ym19_1_1485293974139_13691"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1485293974139_23727"><div id="yui_3_16_0_ym19_1_1485293974139_23865">Best regards</div><div id="yui_3_16_0_ym19_1_1485293974139_23864">Samuel Cederlund<br></div></div></div></div></div></div></div></div></div></div></body></html>