lib/alsa/aconnect.rb in alsa_aconnect-0.1.0 vs lib/alsa/aconnect.rb in alsa_aconnect-0.1.1

- old
+ new

@@ -29,18 +29,18 @@ def output_ports output_clients.map(&:ports).flatten end 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) + input = "#{input.client.id}:#{input.id}" if input.is_a?(Port) + output = "#{output.client.id}:#{output.id}" if output.is_a?(Port) Cmd.run('-d', 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) + input = "#{input.client.id}:#{input.id}" if input.is_a?(Port) + output = "#{output.client.id}:#{output.id}" if output.is_a?(Port) Cmd.run(input, output) end end end