Skip to content

Commit

Permalink
Reverse inputs for SHIELD. (#993)
Browse files Browse the repository at this point in the history
Shield inputs are also swapped. This addition to `startup.lua` flips
them on bootup.
  • Loading branch information
infovore authored Jan 29, 2020
1 parent f80607c commit c87dd30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/core/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ if util.file_exists(_path.home .. "/reverse.txt") then
os.execute("jack_disconnect 'crone:output_2' 'system:playback_2'")
os.execute("jack_connect 'crone:output_1' 'system:playback_2'")
os.execute("jack_connect 'crone:output_2' 'system:playback_1'")
os.execute("jack_disconnect 'system:capture_1' 'crone:input_1'")
os.execute("jack_disconnect 'system:capture_2' 'crone:input_2'")
os.execute("jack_connect 'system:capture_1' 'crone:input_2'")
os.execute("jack_connect 'system:capture_2' 'crone:input_1'")
end

print("start_audio(): ")
Expand Down

0 comments on commit c87dd30

Please sign in to comment.