Feature Request: lua hook for audio events

Started by dfort, March 03, 2017, 06:19:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dfort

Hope this is the right place to ask for this lua feature request.

There doesn't seem to be any audio functions in the lua API.

I'm mostly interested in running AUDIO_REMOTE_SHOT in lua to trigger either a full shutter press or short and long shutter half-press on an EOSM. The EOSM doesn't have the option of using a wired remote so shutter events have to be done either through the IR remote or the mic input. The lua script should be able to start a process (like a shutter half-press or rack focus or whatever) from an audio cue.

Another advantage of having lua do the shutter half-press is that it resets the power savings timer while AUDIO_REMOTE_SHOT doesn't reset the timer. At least that's the experience with a film scanner project that one user is trying to set up with an EOSM.

http://www.magiclantern.fm/forum/index.php?topic=19005.0