Next Previous Contents

4. Elegxos toy Driver Hxoy

4.1 /proc/devices, /dev/sndstat

An exete enswmatwmenh yposthrijh hxoy, 8a deite kapoies xrhsimes plhrofories kata thn ekkinhsh. An exete thn yposthrijh hxoy ws loadable module, 8a parete tis idies plhrofories (isws afou apomakrunete to module hxoy me thn modprobe -r sound prwta) me

# modprobe -a sound trace_init=1
Sound initialization started

<Sound Blaster 16 (4.13)> at 0x220 irq 5 dma 1,5
<Sound Blaster 16> at 0x330 irq 5 dma 0
<Yamaha OPL3 FM> at 0x388
Sound initialization complete
AWE32 Sound Driver v0.3.3e (DRAM 2048k)

An exete ena eikoniko susthma arxeiwn /proc, mporeite na koitajete to arxeio me

# cat /proc/devices
Character devices:
[...]
14 sound
[...]

Meta sigoyreyteite pws exete ta swsta devices egkatesthmena sto /dev/. Koitajte sto Sound HOWTO gia leptomereies. Meta deite to /dev/sndstat gia thn katastash toy module toy hxoy:

# cat /dev/sndstat
Sound Driver:3.5.4-960630 (Sat Oct 11 19:35:14 CEST 1997 root,
Linux flora 2.0.29 #1 Sat Oct 11 19:12:56 CEST 1997 i586 unknown)
Kernel: Linux flora 2.0.29 #1 Sat Oct 11 19:36:23 CEST 1997 i586
Config options: 0

Installed drivers:
Type 1: OPL-2/OPL-3 FM
Type 2: Sound Blaster
Type 7: SB MPU-401

Card config:
Sound Blaster at 0x220 irq 5 drq 1,5
SB MPU-401 at 0x330 irq 5 drq 0
OPL-2/OPL-3 FM at 0x388 drq 0

Audio devices:
0: Sound Blaster 16 (4.13)

Synth devices:
0: Yamaha OPL-3
1: AWE32 Driver v0.3.3e (DRAM 2048k)

Midi devices:
0: Sound Blaster 16

Timers:
0: System clock

Mixers:
0: Sound Blaster
1: AWE32 Equalizer

An den deite kati san kai ayto, isws yparxei la8os me tis ry8miseis sas. Proxwrhste kai deite ti de doyleuei, meta epistrecte sto bhma Arxizontas, elegxontas ta panta.

4.2 Ejodos - The Raw Audio Device

Prospa8hste na breite ena arxeio .au (Sun workstation) h ena arxeio raw file, kai kante

# cat bell.au > /dev/audio

antistoixa.

# cat sample > /dev/dsp

8a prepei na akousete ta periexomena toy arxeioy mesw toy Audio Device 0: Sound Blaster 16 (4.3).

4.3 Ejodos - Sun8esh OPL-2/OPL-3

An 8elete na xrhsimopoihsete thn sun8esh OPL-2/OPL-3 FM gia na paijete arxeia MIDI apo thn karta hxoy sas, dokimaste to programma playmidi (des Appendix B). Arxiste to me

# playmidi -f dance.mid

h

# playmidi -4 dance.mid

To prwto 8a sas dwsei OPL-2, to teleytaio OPL-3 moysikh MIDI . An o hxos einai xalia, mhn kathgoreite to playmidi: Einai h sun8esh FM poy akougetai asxhma.

Fantasteite pws 8a eixate mono ton Driver Hxoy ths OSS/Free Sound Driver: Loipon ayth einai h poiothta moysikhs MIDI poy 8a epituxete (ektos ths sun8eshs mesw logismikou). Eytyxws, exete mia SB AWE, kai mporeite na xrhsimopoieite tis dynatothtes gia Wave Table me to AWE Sound Driver Extension.

4.4 Ejodos - Sun8esh me pinaka kymatomorfwn (Wave Table Synthesis)

To AWE Driver Extension erxetai me kapoia eidika ergaleia (awesfx) gia na kanete xrhsh ths sun8eshs toy EMU 8000 Wave Table. Prwta, prepei na fortwsete mia Trapeza Deigmatwn Hxwn sthn karta sas - akoma kai an skopeuete na akousete ta deigmata poy yparxoyn sthn ROM ! Mporeite na parete ta arxeia apo ta Windows - koitajte gia arxeia me katalhjeis *.sfb h *.sf2.

Ta deigmata ths ROM mporoun na fortw8oun me SYNTHGM.SBK, alh8ina deigmata einai sto SYNTHGS.SBK kai sto SYNTHMT.SBK, ka8ws epishs kai sto SAMPLE.SBK. Mporeite na parete ki alles Trapezes Deigmatwn Hxwn mesw ftp h www. Dokimaste thn EMU Homepage, to web site ths Creative Labs, kai koitajte kai ta deigmata toy Chaos, einai alh8ina polu kala (na tsekarete sigoyra kai to site ths AWE Driver).

Prospa8hste na fortwsete to stantart GM (ROM) me

# sfxload -i synthgm.sbk

kai meta paijte ena arxeio midi poy erxetai mazi me thn SB AWE sas:

# drvmidi dance.mid

4.5 Mijh

Parte to agaphmeno sas programma mijhs kai arxiste to. 3ekinhste ena deigma raw audio kai duo arxeia MIDI taytoxrona, kai dokimaste tis ry8miseis toy mixer.

Paijte gia ligo, 8a prepei na einai polu eukolo. Na h lista me ta devices kai pws legontai:

Yamaha OPL-3

Synth or FM

AWE32 Driver

Synth or FM (does anyone know a mixer were the last two are separated from each other?)

Sound Blaster 16 (4.13)

PCM or DSP

PC Speaker (still alive)

Spkr

Alles ry8miseis toy mikth anaferontai sto CD ROM, poy einai pi8ana syndedemeno me th karta hxoy, thn Kuria Entash Hxoy, Mpasa, Prima, kai eyais8hsia hxografhshs twn diaforwn grammwn eisodoy. Mporeite na prosdiorisete poies eisodoi 8a hxografountai.

4.6 Eisodos - Deigmatolhcia me to Raw Audio Device

Mporeite na hxografhsete apo diaforetikes phges: ena syndedemeno CD ROM, ena mikrofwno sto mic, kai otidhpote mporei na synde8ei sto line in. Balte ton mikth sthn katallhlh 8esh. Paijte enan hxo kai hxografhste se kapoio arxeio, diabazontas apo to Raw Audio Device, gia paradeigma:

# cdplay
# dd bs=8k count=5 </dev/dsp >music.au
5+0 records in
5+0 records out
# cat music.au >/dev/dsp

hxografei kai paizei pente deyterolepta hxoy apo th syskeyh eisodoy.

4.7 H 8ura MIDI

Lypamai, den yparxoyn plhrofories gia th 8ura MIDI akoma!


Next Previous Contents