aboutsummaryrefslogtreecommitdiffstats
path: root/aataaj.lua
diff options
context:
space:
mode:
authordvs12024-10-24 13:28:18 +1000
committerdvs12024-10-24 13:28:18 +1000
commite4fcdb2458635ca3c034fcd2df129f53d9e154e5 (patch)
treedaa0ed1e8fe1b87b231c744ee039c9649b4861c6 /aataaj.lua
parentSplit up the audio output a little nicer. (diff)
downloadJackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.zip
JackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.tar.gz
JackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.tar.bz2
JackOnAllDevices-e4fcdb2458635ca3c034fcd2df129f53d9e154e5.tar.xz
Some more tidying up.
Diffstat (limited to '')
-rwxr-xr-xaataaj.lua59
1 files changed, 0 insertions, 59 deletions
diff --git a/aataaj.lua b/aataaj.lua
index e7bb492..06077c2 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -17,7 +17,6 @@
17local _ = require '_' 17local _ = require '_'
18 18
19 19
20
21local Help = [[ 20local Help = [[
22This is part of the AllAudioToALSAandJACK project, aataaj for short, 21This is part of the AllAudioToALSAandJACK project, aataaj for short,
23pronounced like "attach". 22pronounced like "attach".
@@ -149,64 +148,6 @@ _.parseArgs(options, args)
149 148
150 149
151 150
152
153
154
155--[=[
156local args = {...}
157if 0 ~= #args then
158-- for i,a in pairs(args) do
159-- print('Argument ' .. i .. ' = ' .. a)
160-- end
161
162 if 'start' == args[1] then
163 elseif 'stop' == args[1] then
164 elseif 'STOP' == args[1] then
165 _.killEmAll{'qsynth'}
166 __[[
167 a2j_control --stop
168 sleep 2
169 a2j_control --exit
170 sleep 2
171]]:Do()
172 _.killEmAll{'alsa_in', 'alsa_out', 'zita-a2j', 'zita-j2a', 'aseqjoy', 'jack-plumbing'}
173 __[[
174 sleep 2
175 jack_control stop
176 sleep 2
177 jack_control exit
178 sleep 2
179]]:Do()
180 _.killEmAll{'jmcore', 'qjackctl'}
181 -- Catia is python, and no easy way to kill it.
182 -- Also it keeps jackdbus alive, no matter how hard you kill it.
183 __"pkill -TERM -u $USER -f catia":Do()
184 __"sleep 2":Do()
185 _.killEmAll{'jackdbus', 'a2jmidid'}
186 return(0)
187 elseif 'JACK' == args[1] then
188 elseif 'restart' == args[1] then args[1] = 'start'
189 elseif 'force-reload' == args[1] then args[1] = 'start'
190 elseif 'status' == args[1] then
191 return(0)
192 elseif 'help' == args[1] then
193 print(Help)
194 return(0)
195 elseif '--help' == args[1] then
196 print(Help)
197 return(0)
198 else
199 print("Usage: aataaj.lua {start|stop|restart|force-reload|status|JACK|STOP}")
200 return(1)
201 end
202else
203 print("Usage: aataaj.lua {help|start|stop|restart|force-reload|status|JACK|STOP}")
204 return(1)
205end
206]=]
207
208
209
210-- CHANGE these to suit. 151-- CHANGE these to suit.
211local asoundrcPath = '/var/lib/aataaj' 152local asoundrcPath = '/var/lib/aataaj'
212local asoundrc = 'asoundrc' 153local asoundrc = 'asoundrc'