<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 10, 2013 at 6:29 PM, Aurélien Leblond <span dir="ltr"><<a href="mailto:blablack@gmail.com" target="_blank">blablack@gmail.com</a>></span> wrote: <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- what is the cleanest way to access input port data from the GUI?<br></blockquote><div><br></div><div>In short: the DSP part should write an Atom event to notify the GUI.<br><br></div><div>The long: Ardour3 deletes UI instances when the window is closed: that means the state of the UI is lost.<br>
</div><div>When re-opening the UI, it must re-request the state from the DSP part.<br><br></div><div>Cleanest way:<br></div><div>-On UI init(), write a "requestSamplerate" Atom message to the DSP<br></div><div>-On DSP recieve "requestSamplerate", write Atom message with samplerate int to UI.<br>
</div><div><br></div><div>That covers all the use cases, and the UI will auto update upon re-init in Ardour :)<br><br></div><div>HTH, -Harry<br></div></div></div></div>