diff options
-rwxr-xr-x | aataaj.lua | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -182,7 +182,7 @@ for i,C in pairs(Cards) do | |||
182 | end | 182 | end |
183 | 183 | ||
184 | print('Your ' .. cnt .. ' audio devices are ') | 184 | print('Your ' .. cnt .. ' audio devices are ') |
185 | for i,C in pairs(Cards) do | 185 | for k,C in pairs(Cards) do |
186 | print('' .. C.card - 1 .. ' : ' .. C.name) | 186 | print('' .. C.card - 1 .. ' : ' .. C.name) |
187 | __('ALSA_CARD=' .. C.card - 1 .. ' ' .. speaker .. ' "Your ' .. cnt .. ' audio devices are "'):log():noErr():noOut():fork() | 187 | __('ALSA_CARD=' .. C.card - 1 .. ' ' .. speaker .. ' "Your ' .. cnt .. ' audio devices are "'):log():noErr():noOut():fork() |
188 | end | 188 | end |
@@ -190,7 +190,7 @@ end | |||
190 | __'sleep 6':Do() | 190 | __'sleep 6':Do() |
191 | print('') | 191 | print('') |
192 | io.flush() | 192 | io.flush() |
193 | for i,C in pairs(Cards) do | 193 | for k,C in pairs(Cards) do |
194 | print('' .. C.card - 1 .. ' : ' .. C.name) | 194 | print('' .. C.card - 1 .. ' : ' .. C.name) |
195 | __('echo "' .. C.card - 1 .. ' : ' .. C.name .. '"') | 195 | __('echo "' .. C.card - 1 .. ' : ' .. C.name .. '"') |
196 | __('ALSA_CARD=' .. C.card - 1 .. ' ' .. speaker .. ' "Device ' .. C.card - 1 .. ' ' .. C.name .. '"'):log():noErr():noOut():Do() | 196 | __('ALSA_CARD=' .. C.card - 1 .. ' ' .. speaker .. ' "Device ' .. C.card - 1 .. ' ' .. C.name .. '"'):log():noErr():noOut():Do() |
@@ -204,7 +204,7 @@ io.flush() | |||
204 | if 'start' == arg[1] then | 204 | if 'start' == arg[1] then |
205 | __('mkdir -p ' .. options.asoundrcPath.value):Do() | 205 | __('mkdir -p ' .. options.asoundrcPath.value):Do() |
206 | local a, e = io.open(options.asoundrcPath.value .. '/jack-plumbing', 'w') | 206 | local a, e = io.open(options.asoundrcPath.value .. '/jack-plumbing', 'w') |
207 | if nil == a then print('Could not open ' .. options.asoundrcPath.value .. '/jack-plumbing') else | 207 | if nil == a then print('Could not open ' .. options.asoundrcPath.value .. '/jack-plumbing - ' .. e) else |
208 | a:write([[ | 208 | a:write([[ |
209 | (connect "system:capture_1" "ploop:playback_1") | 209 | (connect "system:capture_1" "ploop:playback_1") |
210 | (connect "system:capture_2" "ploop:playback_2") | 210 | (connect "system:capture_2" "ploop:playback_2") |
@@ -410,7 +410,7 @@ elseif 'JACK' == arg[1] then | |||
410 | if _.runnable'zita-j2a' then AOUT = 'zita-j2a' end | 410 | if _.runnable'zita-j2a' then AOUT = 'zita-j2a' end |
411 | 411 | ||
412 | print('Basic ALSA sound devices converted to JACK.') | 412 | print('Basic ALSA sound devices converted to JACK.') |
413 | for i,C in pairs(options.aliases.value) do | 413 | for k,C in pairs(options.aliases.value) do |
414 | print('HW playback: ' .. C['name'] .. '\tDEVICE: ' .. C['dev']) | 414 | print('HW playback: ' .. C['name'] .. '\tDEVICE: ' .. C['dev']) |
415 | __(AOUT .. ' -j ' .. C['name'] .. ' -d ' .. C['dev']):fork() | 415 | __(AOUT .. ' -j ' .. C['name'] .. ' -d ' .. C['dev']):fork() |
416 | end | 416 | end |
@@ -430,7 +430,7 @@ elseif 'JACK' == arg[1] then | |||
430 | print('') | 430 | print('') |
431 | 431 | ||
432 | print('Rest of ALSA sound devices converted to JACK.') | 432 | print('Rest of ALSA sound devices converted to JACK.') |
433 | for i,C in pairs(Cards) do | 433 | for k,C in pairs(Cards) do |
434 | for j,c in ipairs(C['playbackDevs']) do | 434 | for j,c in ipairs(C['playbackDevs']) do |
435 | print('HW playback: ' .. C['name'] .. '\tDEVICE: ' .. C['playbackDevs'][j]) | 435 | print('HW playback: ' .. C['name'] .. '\tDEVICE: ' .. C['playbackDevs'][j]) |
436 | __(AOUT .. ' -j ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in -d ' .. C['name'] .. C['playbackDevs'][j]):fork() | 436 | __(AOUT .. ' -j ' .. C['name'] .. '_' .. C['playbackDevs'][j] .. '-in -d ' .. C['name'] .. C['playbackDevs'][j]):fork() |