Re: Introducing support for ShuttlePRO v2
Len Ovens <[email protected]> Mon, 29 May 2017 11:35:40 -0700 (PDT)
| Newsgroups | gmane.comp.audio.ardour.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 29 May 2017, Johannes Mueller wrote:
> Another thing is, that I want to use the shuttle to set_transport_speed ().
> Maybe that could even remain hard coded.
Shuttle is easy, look at the jog code in OSC if you like.
> '''
> void
> ShuttleproControlProtocol::do_request (ShuttleproControlUIRequest* req)
> {
> if (req->type == CallSlot) {
> call_slot (MISSING_INVALIDATOR, req->the_slot);
> } else if (req->type == Quit) {
> stop ();
> }
> }
> '''
>
> The CallSlot case doesn't seem to make sense to me, because I don't have any
> slot that another thread might want me to call, do I?
>
> Is it imaginable that another thread will request me to Quit?
Yes. Two possibilities I can think of right now:
- application shutdown
- set your control surface to not enabled with:
preferences->control surfaces->Shuttle-Pro
--
Len Ovens
www.ovenwerks.net