Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
becki:linux:sound [2015-04-07 12:15] becki |
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 67: | Zeile 70: | ||
| aplay -D hw:PCH /usr/share/sounds/KDE_Logout_new.wav | aplay -D hw:PCH /usr/share/sounds/KDE_Logout_new.wav | ||
| - | === Select Sound Card with mplayer == | + | === Permanently select default Sound Card == |
| + | |||
| + | 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 | ||
| - | Cli examples: | + | Older CLI examples for alsa (before pulseaudio) |
| mplayer -ao alsa:device=hw=1 or | mplayer -ao alsa:device=hw=1 or | ||
| Zeile 76: | Zeile 88: | ||
| mplayer -ao alsa:device=hw=PCH.0 or | mplayer -ao alsa:device=hw=PCH.0 or | ||
| - | Or permanently by editing /etc/mplayer/mplayer.conf : | + | #/etc/mplayer/mplayer.conf: |
| ao=alsa:device=hw=1 | ao=alsa:device=hw=1 | ||
| - | === Permanently select default Sound Card == | ||
| - | FIXME A good place to start is probably at ''/etc/asound.state'' | + | ==== 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 deprecated. Whereas 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) | ||