aboutsummaryrefslogtreecommitdiffstats
path: root/aataaj.lua
diff options
context:
space:
mode:
authordvs12024-11-04 18:24:33 +1000
committerdvs12024-11-04 18:24:33 +1000
commitcc28eb3cf2438413a6b7bb3b270e2963245c409e (patch)
treec7154501c3f20eb4c4d8b2c565e15e6fa949fe17 /aataaj.lua
parentInstall / uninstall aataaj docs. (diff)
downloadJackOnAllDevices-cc28eb3cf2438413a6b7bb3b270e2963245c409e.zip
JackOnAllDevices-cc28eb3cf2438413a6b7bb3b270e2963245c409e.tar.gz
JackOnAllDevices-cc28eb3cf2438413a6b7bb3b270e2963245c409e.tar.bz2
JackOnAllDevices-cc28eb3cf2438413a6b7bb3b270e2963245c409e.tar.xz
Another failure at boot subdevices. Works in terminal, dammit.
Diffstat (limited to 'aataaj.lua')
-rwxr-xr-xaataaj.lua17
1 files changed, 10 insertions, 7 deletions
diff --git a/aataaj.lua b/aataaj.lua
index 371adbb..7e6c762 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -177,16 +177,19 @@ io.flush()
177 177
178 178
179local speak = function(card, subdevice, device, words, printIt, forkIt) 179local speak = function(card, subdevice, device, words, printIt, forkIt)
180-- local file = os.tmpname() 180 local file = os.tmpname() .. '.wav'
181-- D('Creating temporary script file at ' .. file) 181 D('Creating temporary script file at ' .. file)
182 local s = '#!/bin/bash\necho "' .. words .. '" | ALSA_CARD=' .. device .. ' ' .. speaker 182-- local s = '#!/bin/bash\necho "' .. words .. '" | ALSA_CARD=' .. device .. ' ' .. speaker
183-- local s = '#!/bin/bash\necho "' .. words .. '" | ' .. speaker .. ' -d ' .. device 183-- local s = '#!/bin/bash\necho "' .. words .. '" | ' .. speaker .. ' -d hw:' .. device .. ',' .. subdevice
184-- local s = '#!/bin/bash\necho "' .. words .. '" | ' .. speaker .. ' -w ' .. file .. ' ; aplay -q --device=hw:CARD=' .. card .. ',DEV=' .. subdevice .. ' ' .. file 184 local s = '#!/bin/bash\n' .. speaker .. ' -d hw:' .. device .. ',' .. subdevice .. ' "' .. words .. '"'
185-- local s = '#!/bin/bash\necho "' .. words .. '" | ' .. speaker .. ' -w ' .. file .. ' ; aplay --device=hw:' .. device .. ',' .. subdevice .. ' ' .. file
186-- local s = '#!/bin/bash\n' .. speaker .. ' -w ' .. file .. ' "' .. words .. '" ; aplay --device=hw:' .. device .. ',' .. subdevice .. ' ' .. file
187print(s)
185 if printIt then print(words) end 188 if printIt then print(words) end
186 if forkIt then 189 if forkIt then
187 __(s):noErr():noOut():fork() 190 __(s):fork()
188 else 191 else
189 __(s):noErr():noOut():Do() 192 __(s):Do()
190 end 193 end
191-- io.flush() 194-- io.flush()
192end 195end