avswitch (ausgesprochen A-V-Switch) ist in "wahnsinnig elegantes objektorientiertes C++" geschrieben. Leider ist dadurch das Binary relativ groß geworden, so dass ich nicht ernsthaft ein Ersatz von switch empfehlen kann. Ich will trotzdem euch das Programm nicht enthalten, ist in CVS in .../apps/tuxbox/tools/misc/avswitch.cpp, binary.
Vielleicht findet jemanden es nützlig.
Code: Alles auswählen
# avswitch
avswitch version 0.5; $Id: avswitch.cpp,v 1.1 2006/06/17 13:47:46 barf Exp $
usage:
avswitch command
where command = show, list, scart.conf, scart.conf_ext
or
avswitch variable
or
avswitch variable value
where variable = v1, a1, v2, a2, v3, a3, fblk, fnc, zcd, ycm, volume, mute
Code: Alles auswählen
# avswitch show
TV-Scart: video (v1) = 5 Audio (a1) = 1
VCR-Scart: video (v2) = 1 Audio (a3) = 1
AUX: video (v3) = 0 Audio (a2) = 1
FBLK: 1
FNC: 1 (= 16:9)
avs volume: 0 (0-63; 63 = quiet, 0 = loud)
avs mute: 0
Code: Alles auswählen
# avswitch v1 7
# avswitch v1
7
Code: Alles auswählen
# avswitch scart.conf
# v1 a1 v2 a2 v3 a3 fblk
nokia_xxxx: 5 1 1 1 0 1 1
# avswitch scart.conf_ext
# v1 a1 v2 a2 v3 a3 fblk
nokia_xxxx: {5 5 5 5 5} 1 {{1 1} {1 1} {1 1} {1 1} {1 1}} 1 {0 0 0 0 0} 1 1
#