<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
See, I know the value of each control port this way:<br>
<tt><br>
</tt><tt>static void port_event(LV2UI_Handle ui,</tt><tt><br>
</tt><tt> uint32_t port_index,</tt><tt><br>
</tt><tt> uint32_t buffer_size,</tt><tt><br>
</tt><tt> uint32_t format,</tt><tt><br>
</tt><tt> const void * buffer)</tt><tt><br>
</tt><tt>{</tt><tt><br>
</tt><tt> KisGUI *self = (KisGUI *) ui;</tt><tt><br>
</tt><tt><br>
</tt><tt> if (port_index == 3)</tt><tt><br>
</tt><tt> cout << "Volume is " <<
(*static_cast<const float*>(buffer)) << " Format is "
<< format << endl;</tt><tt><br>
</tt><tt><br>
</tt><tt> cout << "Port event on index " <<
port_index << " Format is " << format << endl;</tt><tt><br>
</tt><tt><br>
</tt><tt> return;</tt><tt><br>
</tt><tt>}</tt><tt><br>
</tt><br>
It's call at session opening, so that would already solve the
problem at <i>that</i> time. <br>
But how can I access the UI widget to pass it the value?<br>
<br>
The problem is to find documentation on NTK... All plugin sources
that I can find use Qt or GTK...<br>
But either way, I need to uderstad te logic of it : How does the UI
<b>read</b> values?<br>
<br>
<br>
<div class="moz-cite-prefix">On 17/10/14 13:30, Phil CM wrote:<br>
</div>
<blockquote cite="mid:54410BD7.9060508@gnu.org" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
When I turn the controls in my UI, the controls move in the hosts
generic UI ;<br>
But when I turn the controls in the hosts generic UI, nothing
moves in the UI.<br>
<br>
Also each time the UI is opened, the widgets are reset at maximum
(not the values).<br>
<br>
How can I <i>get</i> the control ports values from the UI
perspective?<br>
<br>
--Phil<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Linux-audio-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-audio-dev@lists.linuxaudio.org">Linux-audio-dev@lists.linuxaudio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxaudio.org/listinfo/linux-audio-dev">http://lists.linuxaudio.org/listinfo/linux-audio-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Philippe "xaccrocheur" Coatmeur
<a class="moz-txt-link-freetext" href="http://bitbucket.org/xaccrocheur">http://bitbucket.org/xaccrocheur</a> / <a class="moz-txt-link-freetext" href="https://github.com/xaccrocheur">https://github.com/xaccrocheur</a>
<a class="moz-txt-link-freetext" href="http://opensimo.org/play/">http://opensimo.org/play/</a></pre>
</body>
</html>