Re: [LAD] LV2 Oscilloscope

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <Linux-audio-dev@...>
Date: Monday, October 14, 2013 - 3:08 am

--047d7bd910d8fcf2a004e8aac81e
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,

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

get_supplied_options() should work fine both in UIs and Plugins. My guess
is the host only gives the sampleRate option to the Plugin and not the UI.
Which host are you working with?

Also, you can compile the UI with a -DLVTK_DEBUG=3D1, and the console will
print the validation status for any features passed in by the host.

You could also from the UI send a patch get message and make sure the
Plugin knows how to respond appropriately.

On Sat, Oct 12, 2013 at 1:16 PM, Filipe Coelho wrote:

> On 10/12/2013 04:36 PM, Aur=E9lien Leblond wrote:

ns
UI.
LV2.cpp#L124

--047d7bd910d8fcf2a004e8aac81e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,problem is get_supplied_options() returns 0 options when called fro=
m the UI.get_supplied_options=
() should work fine both in UIs and Plugins. =A0 My guess is the host only =
gives the sampleRate option to the Plugin and not the UI. =A0 Which host ar=
e you working with?
Also, you can compile the UI with a =A0-DLVTK_DEBUG=3D1, and the consol=
e will print the validation status for any features passed in by the host.<=
br>You could also from the UI send a patch get message and make sure th=
e Plugin knows how to respond appropriately.
On Sat, Oct 12, 2013 at 1:16 PM, Filipe =
Coelho <falktx@gmail.com> wrote:

=20
=20
=20

On 10/12/2013 04:36 PM, Aur=E9lien
Leblond wrote:

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.

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?

Speak to your host developer.

In my host LV2 UI code I have this:
https://github.com/falkTX/Carla/bl=
ob/master/source/bridges/CarlaBridgeUI-LV2.cpp#L124

The sample-rate is passed via options feature to the UI, among other
things.

btw, option extension uses lv2:sampleRate and not
lv2param:sampleRate, my mistake.

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lis=
ts.linuxaudio.org

http://lists.linuxaudio.org/listinfo/linux-audio-dev

--047d7bd910d8fcf2a004e8aac81e--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] LV2 Oscilloscope, Aurélien Leblond, (Sat Oct 12, 3:36 pm)
Re: [LAD] LV2 Oscilloscope, Filipe Coelho, (Sat Oct 12, 6:16 pm)
Re: [LAD] LV2 Oscilloscope, Michael Fisher, (Mon Oct 14, 3:08 am)
Re: [LAD] LV2 Oscilloscope, Lars Luthman, (Sat Oct 12, 4:24 pm)