Uses 107K of libraries. Click here for Pure Java version (5139L/34K).
1 | !7 |
2 | |
3 | sclass NumberOfMics > DynBigNumber { |
4 | void start { |
5 | doEveryAndNow(60.0, r actualUpdate); |
6 | } |
7 | |
8 | void actualUpdate { |
9 | temp enter(); |
10 | time "arecord -l" { |
11 | S text = apacheCommonsExec_backtick("arecord -l"); |
12 | } |
13 | //printIndent(text); |
14 | setValue(or(regexpFirstGroup_lastMatch("\\bcard (\\d+):", text), "?")); |
15 | } |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016814 |
Snippet name: | Number of microphones [Dyn Module, Linux] |
Eternal ID of this version: | #1016814/8 |
Text MD5: | babdc03e9a6ebfe166414a0687adbfaa |
Transpilation MD5: | 1108a0ae62977d0fdbc97037ef413a97 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-03 14:25:38 |
Source code size: | 352 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 380 / 522 |
Version history: | 7 change(s) |
Referenced in: | [show references] |