diff options
Diffstat (limited to '')
-rwxr-xr-x | aataaj.lua | 59 |
1 files changed, 0 insertions, 59 deletions
@@ -17,7 +17,6 @@ | |||
17 | local _ = require '_' | 17 | local _ = require '_' |
18 | 18 | ||
19 | 19 | ||
20 | |||
21 | local Help = [[ | 20 | local Help = [[ |
22 | This is part of the AllAudioToALSAandJACK project, aataaj for short, | 21 | This is part of the AllAudioToALSAandJACK project, aataaj for short, |
23 | pronounced like "attach". | 22 | pronounced like "attach". |
@@ -149,64 +148,6 @@ _.parseArgs(options, args) | |||
149 | 148 | ||
150 | 149 | ||
151 | 150 | ||
152 | |||
153 | |||
154 | |||
155 | --[=[ | ||
156 | local args = {...} | ||
157 | if 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 | ||
202 | else | ||
203 | print("Usage: aataaj.lua {help|start|stop|restart|force-reload|status|JACK|STOP}") | ||
204 | return(1) | ||
205 | end | ||
206 | ]=] | ||
207 | |||
208 | |||
209 | |||
210 | -- CHANGE these to suit. | 151 | -- CHANGE these to suit. |
211 | local asoundrcPath = '/var/lib/aataaj' | 152 | local asoundrcPath = '/var/lib/aataaj' |
212 | local asoundrc = 'asoundrc' | 153 | local asoundrc = 'asoundrc' |