Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:sound

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
becki:linux:sound [2015-04-07 10:10]
becki created
becki:linux:sound [2020-06-23 07:22] (aktuell)
becki
Zeile 1: Zeile 1:
 ====== Linux Sound and Audio == ====== Linux Sound and Audio ==
 +
 +{{tagtopic>​linux +audio&​rsort&​order=modified}}
 +
 ===== Overview == ===== Overview ==
  
Zeile 62: Zeile 65:
 === Select Sound Card with aplay == === Select Sound Card with aplay ==
  
-aplay -D hw:1 /​usr/​share/​sounds/​KDE_Logout_new.wav +Examples:
-aplay -D hw:PCH /​usr/​share/​sounds/​KDE_Logout_new.wav+
  
-=== Select Sound Card with mplayer == +  aplay -hw:1 /​usr/​share/​sounds/​KDE_Logout_new.wav 
- +  ​aplay ​-hw:​PCH ​/​usr/​share/​sounds/​KDE_Logout_new.wav
-mplayer ​-ao alsa:​device=hw=1 or +
-mplayer -ao alsa:device=hw=1.0 or +
-mplayer ​-ao alsa:​device=hw=PCH or +
-mplayer -ao alsa:device=hw=PCH.0 or+
  
 === Permanently select default Sound Card == === Permanently select default Sound Card ==
  
 FIXME A good place to start is probably at ''/​etc/​asound.state''​ FIXME A good place to start is probably at ''/​etc/​asound.state''​
 +
 +===== Mplayer ==
 +==== Select output driver ==
 +
 +As of Slack 14.4 Pulse is active, but mplayer still uses Alsa as output. In order to avoid detours (see above), change this permanently to pulse by editing /​etc/​mplayer/​mplayer.conf :
 +
 +  ao=pulse
 +
 +Older CLI examples for alsa (before pulseaudio)
 +
 +  mplayer -ao alsa:​device=hw=1 or
 +  mplayer -ao alsa:​device=hw=1.0 or
 +  mplayer -ao alsa:​device=hw=PCH or
 +  mplayer -ao alsa:​device=hw=PCH.0 or
 +
 +  #/​etc/​mplayer/​mplayer.conf:​
 +  ao=alsa:​device=hw=1
 +
 +
 +==== Steaming throuh Socks Proxy ==
 +
 +The following command line plays a radio stream through a local socks5 proxy listening on port 1080:
 +
 +  curl --socks5 localhost:​1080 http://​ibizaglobalradio.streaming-pro.com:​8024 | mplayer -quiet -cache 1024 -
 +
 +You might experiment a bit with the cache size or not need to use the cache at all.
 +
 +==== Dump audio to wav file ==
 +
 +  mplayer -ao pcm <​file>​|<​url>​
 +
 +==== Webcam viewing / testing ==
 +
 +<​code>​
 +mplayer tv://
 +</​code>​
 +
 +Source: http://​www.linuxtv.org/​wiki/​index.php/​MPlayer#​Using_MPlayer_for_Webcam_Viewing
 +
 +==== Slave mode ==
 +
 +http://​www.mplayerhq.hu/​DOCS/​tech/​slave.txt
  
 ===== Mixer == ===== Mixer ==
  
-FIXME Slack comes with esound (apparently disabled)According ​to usr/doc/esound-0.2.41/README esound is deprecatedWhereas pulseaudio is available only on slackbuilds+As of Slack 14.2 Pulseaudio is included and activated by default. 
 + 
 +CLI frontend: ''​pamixer''​ 
 +GUI fromtend: ''​pavucontrol''​ 
 + 
 +<​note>​It is **not** recommended ​to make ''​/etc/rc.d/​rc.pulseaudio''​ runnable. Normally pulseaudio will start automatically as-needed with an instance per audio user.</​note>​ 
 + 
 +===== Bluetooth == 
 + 
 +In order to channel audio from any source to an external speaker or headset via bluetooth, first make ''/​etc/​rc.d/rc.bluetooth''​ runnable and start it as root. 
 +  
 +Now start the ''​blueman-manager''​ GUI to connect to the remote device. 
 + 
 +The ''​pavucontrol''​ GUI allows you to route the sound to the according remote device. You might need to check the button "Set as fallback"​ for that output device.
  
-===== Attic ==+===== Attic / obsolete ​==
  
   mixer: alsamixer (,rexima, amixer)   mixer: alsamixer (,rexima, amixer)
becki/linux/sound.1428401459.txt.gz · Zuletzt geändert: 2015-04-07 10:10 von becki

Impressum - Datenschutzerklärung