Warning: this is an htmlized version!
The original is across this link,
and the conversion rules are here.
#######
#
# E-scripts on support for sound, sound ports and devices, etc
#
# Note 1: use the eev command (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://angg.twu.net/e/sound.e>
#           or at <http://angg.twu.net/e/sound.e.html>.
#        See also <http://angg.twu.net/emacs.html>,
#                 <http://angg.twu.net/.emacs[.html]>,
#                 <http://angg.twu.net/.zshrc[.html]>,
#                 <http://angg.twu.net/escripts.html>,
#             and <http://angg.twu.net/>.
#
#######





# «.audio-group»	(to "audio-group")
# «.alsaconf»		(to "alsaconf")
# «.arecord»		(to "arecord")

See:
  (find-es "music")
  (find-es "alsa")





#####
#
# "a" is not in the audio group
# 2008nov08
#
#####

# «audio-group»  (to ".audio-group")
# (find-man "1 groups")
# (find-node "(coreutils)groups invocation")
# (find-man "5 group")
# (find-man "mpg123")
# (find-man "sudo")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
groups
sudo -u edrx ~/run-zsh
groups
cd ~/NICOTINE/FEELIES/Crazy_rhythms/
laf
p 01._the_boy_with_the_perpetual_nervou.mp3

w p
w p1
w myplay1
mpg321           01._the_boy_with_the_perpetual_nervou.mp3

mpg321 -o oss    01._the_boy_with_the_perpetual_nervou.mp3

mpg321 -o alsa   01._the_boy_with_the_perpetual_nervou.mp3

mpg321 -o alsa09 01._the_boy_with_the_perpetual_nervou.mp3

mpg321 -o esd    01._the_boy_with_the_perpetual_nervou.mp3

mpg321 -o arts   01._the_boy_with_the_perpetual_nervou.mp3





#####
#
# alsaconf
# 2008nov08
#
#####

# «alsaconf»  (to ".alsaconf")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
# R
sudo alsaconf
sudo alsactl store

# (find-man "1 alsactl")
# (find-status   "linux-sound-base")
# (find-vldifile "linux-sound-base.list")
# (find-udfile   "linux-sound-base/")
# (find-udfile   "linux-sound-base/README.Debian")
# (find-status   "alsa-utils")
# (find-vldifile "alsa-utils.list")
# (find-udfile   "alsa-utils/")
# (find-status   "alsa-base")
# (find-vldifile "alsa-base.list")
# (find-udfile   "alsa-base/")

Playing MPEG stream from 01._the_boy_with_the_perpetual_nervou.mp3 ...
MPEG 1.0 layer III, 160 kbit/s, 44100 Hz stereo
Can't find a suitable libao driver. (Is device in use?)

# (find-sh "dmesg")

/home/edrx(root:de)# alsaconf
Unloading ALSA sound driver modules: snd-intel8x0 snd-intel8x0m snd-ac97-codec snd-ac97-bus snd-pcm snd-timer snd-page-alloc.
Building card database.

# (find-sh "locate alsaconf")
# (find-man "8 alsaconf")
# (find-fline "/usr/sbin/alsaconf")
# (find-fline "/usr/sbin/alsaconf" "cfgfile=\"/etc/modutils/sound\"")
# (find-fline "/usr/sbin/alsaconf" "Soundcard Selection")
# (find-fline "/usr/sbin/alsaconf" "devs_found[@]")
# (find-fline "/usr/sbin/alsaconf" "Configuring %s")
# (find-fline "/usr/sbin/alsaconf" "Building card database...")
# (find-fline "/usr/sbin/alsaconf" "OK, sound driver is configured.")
# (find-fline "/usr/sbin/alsaconf" "/etc/init.d/alsa")
# (find-fline "/etc/modutils/")
# (find-fline "/etc/modutils/sound")
# (find-fline "/etc/init.d/alsa")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
sudo /etc/init.d/alsa reload

# (find-man "1 grep-available")
# (find-zsh "grep-available -F Section sound")
# (find-zsh "grep-available -F Section sound -s Package")
# (find-zsh "grep-available -F Section sound -s Package | cut -b10- | sort")
# (find-zsh "grep-status    -F Section sound -s Package | cut -b10- | sort")

# Building card database...
# Running update-modules...
# Loading driver...
# Setting default volumes...
#  Now ALSA is ready to use.
#  For adjustment of volumes, use your favorite mixer.

# (find-available "alsa-base")
# (find-available "alsa-firmware-loaders")
# (find-available "alsa-oss")
# (find-available "alsa-source")
# (find-available "alsa-tools")
# (find-available "alsa-tools-gui")
# (find-available "alsa-utils")
# (find-available "alsamixergui")
# (find-available "alsaplayer-alsa")
# (find-available "alsaplayer-common")
# (find-available "alsaplayer-daemon")
# (find-available "alsaplayer-esd")
# (find-available "alsaplayer-gtk")
# (find-available "alsaplayer-jack")
# (find-available "alsaplayer-nas")
# (find-available "alsaplayer-oss")
# (find-available "alsaplayer-text")
# (find-available "alsaplayer-xosd")


alsa-driver

http://ftp.debian.org/debian/pool/main/a/alsa-driver/alsa-driver_1.0.17.dfsg-4.dsc




#####
#
# arecord
# 2009nov03
#
#####

# «arecord»  (to ".arecord")
# (find-man "1 arecord" "arecord -d 10")

* (eepitch-shell)
* (eepitch-kill)
* (eepitch-shell)
cd /tmp/
arecord -d 10 -f cd -t wav -D copy foobar.wav
arecord -d 10 -f cd -t wav foobar.wav
arecord -d 4 -f cd -t wav /tmp/foobar.wav
p /tmp/foobar.wav

# (find-man "xterm")
xterm alsamixer


* (eexterm "mix")
alsamixer








#  Local Variables:
#  coding:               raw-text-unix
#  ee-delimiter-hash:    "\n#*\n"
#  ee-delimiter-percent: "\n%*\n"
#  ee-anchor-format:     "«%s»"
#  End: