mirror of
https://github.com/onyx-and-iris/voicemeeter-rb.git
synced 2024-11-21 17:30:49 +00:00
check if method exists for scene
upate Gemfile
This commit is contained in:
parent
bee166f354
commit
ec43297b2d
@ -2,4 +2,4 @@
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "obsws", "~> 0.1.3"
|
||||
gem "obsws", "~> 0.3.0"
|
||||
|
@ -44,7 +44,9 @@ class Main
|
||||
def on_current_program_scene_changed(data)
|
||||
scene = data.scene_name
|
||||
puts "Switched to scene #{scene}"
|
||||
send("on_#{scene.downcase}")
|
||||
if respond_to?("on_#{scene.downcase}")
|
||||
send("on_#{scene.downcase}")
|
||||
end
|
||||
end
|
||||
|
||||
def on_exit_started
|
||||
|
Loading…
Reference in New Issue
Block a user