steinbergmedia / vst3_pluginterfaces

VST 3 API
Other
24 stars 18 forks source link

registerTimer on Linux is not essential #3

Closed abique closed 3 years ago

abique commented 6 years ago

https://github.com/steinbergmedia/vst3_pluginterfaces/blob/de91bf4199959f9496cf6d14990fce037435ade5/gui/iplugview.h#L267

Hi,

I think this one is not essential, because if you can register a FD, then you can use timerfd_create() and register it.

The only advantage that I can see is to have a sorted queue of timers and use the poll() timeout to trigger those events, but I'm not sure that it would be supperior to the timerfd api.

Alex.

scheffle commented 6 years ago

Hi Alex, the disadvantage of using timerfd_create is that this is a linux only API, while the current interface can also be used on any other unix like system. The host is free to use timerfd_create to handle plug-in timers.

Arne

abique commented 6 years ago

So far this interface is Linux only right? That's what I understand from the header.

scheffle commented 6 years ago

Currently we only support linux, but we could adopt this for BSD Unix fairly easy this way.

abique commented 6 years ago

OK.

abique commented 6 years ago

What about splitting it from the FD reactor?

scheffle commented 6 years ago

I think they belong to each other. It's all about event handling.