Change sound delay from hotkey

Fa1k3n

New Member
I have a few different video sources that requires my audio source (external mixer board) to have different values for delay.
I was wondering if it would be possible to script setting different delays and then connect these scripts to hotkeys?

Regards,
Johan
 
I haven't played with delay, but I have used a Lua script to set the volume of an audio source via obs_source_set_volume.

The docs show functions available for sync offset:
void obs_source_set_sync_offset(obs_source_t *source, int64_t offset)
int64_t obs_source_get_sync_offset(const obs_source_t *source)
Sets/gets the audio sync offset (in nanoseconds) for a (audio) source.

So you COULD have hotkey action in the script.

But the nicest solution would be to have the script automatically set the sync value based on which video source is currently in use.
The script could register for the source_activate signal. If the activated source is one of your video sources, it would set the appropriate sync delay in the audio source.
 

Fa1k3n

New Member
Excellent many thanks , I will give that function a try, sounds exactly what I need . I totally agree on delay based on source but problem is that I do my video mixing in an atem mini and bring that in as one source . So my thinking is to connect both the atem mini switching and the delay setting to an stream deck button .
 
Top