Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
os:linux:sound:current [2019/09/17 09:17]
owlbook [JACK]
os:linux:sound:current [2019/12/25 18:22] (current)
owlbook [Запуск звуковой подсистемы]
Line 66: Line 66:
  
 pidof jackd && kill jackd pidof jackd && kill jackd
-if [[ -n $(aplay -l | grep Pro) ]]; then+jack_control eps driver alsa 
 +if [[ -n "​$1"​ ]]; then 
 +  jack_control dps device hw:$1 
 +  jack_control dps playback hw:$1 
 +  jack_control dps capture hw:$1 
 +elif [[ -n $(aplay -l | grep Pro) ]]; then
   jack_control dps device hw:Pro   jack_control dps device hw:Pro
   jack_control dps playback hw:Pro   jack_control dps playback hw:Pro
   jack_control dps capture hw:Pro   jack_control dps capture hw:Pro
-  ​#​alsa_in ​-j PCH -hw:PCH & +  ​jack_control dps inchannels 2 
-  ​#alsa_out -j PCH -d hw:PCH &+  jack_control dps outchannels 2 
 +elif [[ -n $(aplay ​-l | grep 2i4) ]]; then 
 +  jack_control dps device ​hw:USB 
 +  ​jack_control dps playback ​hw:USB 
 +  jack_control dps capture hw:USB 
 +  jack_control dps inchannels 2 
 +  jack_control dps outchannels 4
 else else
   jack_control dps device hw:PCH   jack_control dps device hw:PCH
   jack_control dps playback hw:PCH   jack_control dps playback hw:PCH
   jack_control dps capture hw:PCH   jack_control dps capture hw:PCH
 +  jack_control dps inchannels 2
 +  jack_control dps outchannels 2
 fi fi
 jack_control start jack_control start
 sleep 1 sleep 1
-pulseaudio --exit-idle-time=-1 -L module-jack-sink -L module-jack-source -L module-native-protocol-tcp --start+pulseaudio ​--realtime=false ​--exit-idle-time=-1 -L module-jack-sink -L module-jack-source -L module-native-protocol-tcp --start
 pacmd set-default-sink jack_out pacmd set-default-sink jack_out
 </​file>​ </​file>​