<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#333333" text="#CCCCCC">
    <div class="moz-cite-prefix">On 10/12/2013 04:36 PM, Aurélien
      Leblond wrote:<br>
    </div>
    <blockquote
cite="mid:CAE-xCyN2LqtiNauobA8u=Q0f0_pZ9ZjFCZSaSkbu0YR38yA0xA@mail.gmail.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">LV2 UIs can get the sample-rate using the options extension.
Hosts will set the appropriate option lv2param:sampleRate which the UI
can get on initialization.
</pre>
      </blockquote>
      <pre wrap="">
I tried that but without success.
I'm using the LVTK library to develop this plugin. My approach is to:
- use the get_supplied_options() method to access the host supplied options
- iterate until I find SampleRate

problem is get_supplied_options() returns 0 options when called from the UI.

Any advice?</pre>
    </blockquote>
    Speak to your host developer.<br>
    <br>
    In my host LV2 UI code I have this:<br>
<a class="moz-txt-link-freetext" href="https://github.com/falkTX/Carla/blob/master/source/bridges/CarlaBridgeUI-LV2.cpp#L124">https://github.com/falkTX/Carla/blob/master/source/bridges/CarlaBridgeUI-LV2.cpp#L124</a><br>
    <br>
    The sample-rate is passed via options feature to the UI, among other
    things.<br>
    <br>
    <br>
    btw, option extension uses lv2:sampleRate and not
    lv2param:sampleRate, my mistake.<br>
    <br>
  </body>
</html>