lib/alsa/aconnect.rb in alsa_aconnect-0.1.3 vs lib/alsa/aconnect.rb in alsa_aconnect-0.1.4
- old
+ new
@@ -33,17 +33,17 @@
def connect(input, output)
input = "#{input.client.id}:#{input.id}" if input.is_a?(Port)
output = "#{output.client.id}:#{output.id}" if output.is_a?(Port)
- run('-d', input, output)
+ run(input, output)
end
def disconnect(input, output)
input = "#{input.client.id}:#{input.id}" if input.is_a?(Port)
output = "#{output.client.id}:#{output.id}" if output.is_a?(Port)
- run(input, output)
+ run('-d', input, output)
end
def run(*arguments)
cmd = [config.exec_path, *arguments].compact.join(' ')
out, err, status = Open3.capture3(cmd)