A free Basic UNIX-training with muLinux
Notes: This Text is roughly translated (German to English) by a translating program. Sorry, but I have not time for the translation. Maybe you can do this.
Music and Sound
Nowadays everything must be multimedia.
Why should sound support be missing also on a a floppy Unix?
Is supported a sound card, which is compatible to Soundblaster (I/O=220, IRQ=5).
The sound support becomes thereby from the Kernel module sound.o enabled.
In former times in addition the Kernel would have had again to be compiled.
Now reloadable modules can support some additional functionalities.
Activate the Sound Module
With the help of of the setup program becomes the sound module sound.oactivated.
/# setup -f sound
Do you want Sound support? (y/n) y
1) SoundBlaster
2) PC-Speaker
Your choice (1/2) 1
Would you auto-probe soundcard IRQ (y/n) y
If you hear a sound, the following specifications are probably correct.
Enter SB_PORT [220] [Enter]
Enter SB_IRQ [5] [Enter]
Enter SB_DMA [1] [Enter]
Enter SB_DMA16 [5] [Enter]
If the sound card is not supported, we must be content with the activation of the PC loudspeaker.
Save of the Adjustments
So that with the next start of muLinux the adjustments are available again, we store those setup adjustments.
/# setup -s tutorial01
muLinux Sound Programs
Wave Generator
The instruction wave produces a tone.
The following instruction outputs a tone of 440 cycles per second (standard tuning tone A) with a length of 2/10 seconds.
/# wave 440 2
A oktave more highly, thus next A, is achieved with the double frequency:
/# wave 880 2
We receive an assistance with the option -h.
/# wave -h
We experience in such a way that we also with the option - c the sound output to the PC loudspeaker to reroute know.
/# wave -c 880 2
Sound Recording
If we attached a microphone at the sound card, we can digitize the sound with
the instruction vrec. Storage takes place as wav file. Beforehand
we put however our work diskette into the drive, mount these and produce on
the diskette a directory soundfiles.
/# mount /dev/fd0 /a
/# mkdir /a/soundfiles
/# cd /a/soundfiles
/# vrec test.wav
We can terminate the recording with [Ctrl][C ].
With ls we check whether also really a file test.wav one produced.
We receive assistance again with the option -h.
Play Sound Files
Now we want to naturally sound ourselves our recording:
/# vplay test.wav
Sound files in the file format .au can directly to the device file /dev/audio are output:
/# cat file.au > /dev/audio
CD Player
For listening to audio CDs the instruction serves playcd or cdp (link to playcd).
/# cdp
So one can activate the CD player on a console and continue to work on the other consoles.
Or one terminates the program also q, whereby playing
is not terminated (background process).
For terminating playing the program must be started still times.
With SCSI CD-ROM drives the Player does not function.
Piano ;-)
In the directory /usr/games are also some sound plays.
So e.g. a piano:
/# piano
The keys serve
as piano keys.
Further there is the program paganini , which plays a melody.
Both programs are shell Skripte.
It is worthwhile itself to look at this times more exactly:
/# less /usr/games/piano
Note: There is the instruction with the "normal" Linux beep as acoustic signal.
Robert.Warnke@giso.de (copyleft) Robert Warnke, Berlin (Germany) - You can write me in English. | http://rowa.giso.de
|