diff options
author | dvs1 | 2024-11-04 15:42:52 +1000 |
---|---|---|
committer | dvs1 | 2024-11-04 15:42:52 +1000 |
commit | 5b0e2b734d0b1828972012764811cd0edc96d71b (patch) | |
tree | 06c79f74e0c43b8fe599842feb4fb3e1dbecfb4f | |
parent | Search for the README.md file when help is asked for. (diff) | |
download | JackOnAllDevices-5b0e2b734d0b1828972012764811cd0edc96d71b.zip JackOnAllDevices-5b0e2b734d0b1828972012764811cd0edc96d71b.tar.gz JackOnAllDevices-5b0e2b734d0b1828972012764811cd0edc96d71b.tar.bz2 JackOnAllDevices-5b0e2b734d0b1828972012764811cd0edc96d71b.tar.xz |
No need for Help here now that it can find it's README.
-rwxr-xr-x | aataaj.lua | 64 |
1 files changed, 0 insertions, 64 deletions
@@ -15,70 +15,6 @@ | |||
15 | ]] | 15 | ]] |
16 | 16 | ||
17 | local _ = require 'PolygLua' | 17 | local _ = require 'PolygLua' |
18 | |||
19 | --[[ TODO - replace this with code to search for and print the README.md file. | ||
20 | Since we got the path to the script in arg[0], we can split that up and follow symlinks until we find where the files are. Maybe we can find README.md there. | ||
21 | ]] | ||
22 | Help = [[ | ||
23 | This is part of the AllAudioToALSAandJACK project, aataaj for short, | ||
24 | pronounced like "attach". | ||
25 | |||
26 | The purpose is to scan for all ALSA / asound audio devices, and hook them | ||
27 | all up to ALSA and JACK. Then it starts up JACK, and hooks up any | ||
28 | joysticks it finds as MIDI controllers. So any ALSA application gets routed through | ||
29 | JACK. | ||
30 | |||
31 | This is very rough for now, only just started writing it. The stop | ||
32 | command is particularly crude and violent, lots of pkill. | ||
33 | |||
34 | Since it isn't a package yet, some setup is needed. | ||
35 | |||
36 | The packages you need installed are - | ||
37 | luajit | ||
38 | jackd2 | ||
39 | jack-tools for jack-plumbing, but other patch persistance methods could be used. | ||
40 | a2jmidid | ||
41 | zita-ajbridge | ||
42 | aseqjoy | ||
43 | |||
44 | qjackctl can be used as a visual patchbay, though I prefer catia from the KXStudio repos. | ||
45 | |||
46 | You need to have the snd-aloop kernel module loaded. | ||
47 | |||
48 | The aataaj.lua script should be run at boot time, install it by running - | ||
49 | |||
50 | ./aataaj.lua install | ||
51 | |||
52 | |||
53 | "aataaj JACK" should be called on user login. Probably don't need to run "aataaj STOP" on | ||
54 | user logout. | ||
55 | |||
56 | It starts up JACK and friends, and creates JACK devices for all the | ||
57 | things "aataaj start" found. It creates the cloop and ploop devices that | ||
58 | catch everything ALSA does. Then creates MIDI devices for all your | ||
59 | joysticks. | ||
60 | |||
61 | |||
62 | Alas ~/.asoundrc doesn't understand ~ or $HOME, or even "try the current | ||
63 | directory" it seems. So you have to hard code the path. Make sure your | ||
64 | ~/.asoundrc or /etc/asoundrc includes something like this - | ||
65 | |||
66 | </var/lib/aataaj/asoundrc> | ||
67 | |||
68 | |||
69 | |||
70 | "aataaj STOP" closes down everything "aataaj JACK" started up. | ||
71 | |||
72 | |||
73 | |||
74 | TODO - Leave it running, and hotplug ALSA / asound audio devices. | ||
75 | a2jmidid takes care of hotplugging MIDI devices. | ||
76 | Though I think I still need to deal with hotplugged joysticks. | ||
77 | |||
78 | NOTE - Seems both ALSA and JACK are per user. So you need to run | ||
79 | "aataaj JACK" for each user. | ||
80 | |||
81 | ]] | ||
82 | Version = '0.0 crap' | 18 | Version = '0.0 crap' |
83 | 19 | ||
84 | local function goAway() | 20 | local function goAway() |