[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:hardware:soundblaster-live-5.1 [2014/03/19 07:15 (UTC)] – [Problems with SoundFonts] wisedraco | howtos:hardware:soundblaster-live-5.1 [2014/03/19 08:23 (UTC)] – [Problems with SoundFonts] wisedraco | ||
---|---|---|---|
Line 80: | Line 80: | ||
e: john AT sten.lv. | e: john AT sten.lv. | ||
+ | ===== Play files from CLI ===== | ||
+ | |||
+ | For playing MIDI (.mid) files under Command Line Interface, you can use a aplaymidi command from slackware, or download and install pmidi from http:// | ||
+ | The both programms is very similar in use and syntax. | ||
+ | To play MIDI via aplaymidi: | ||
+ | |||
+ | do | ||
+ | <code bash> | ||
+ | |||
+ | aplaymidi -l | ||
+ | |||
+ | </ | ||
+ | |||
+ | you get something like this: | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | now you must define hw wavetable port for programm and midi file to play: | ||
+ | |||
+ | <code bash> | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | To play another types of files ( .wav .flac .mp3 and so on) you can use " | ||
+ | in default it use default sound card for output. | ||
+ | <code bash> | ||
+ | |||
+ | play loona.mp3 | ||
+ | |||
+ | loona.mp3: | ||
+ | |||
+ | File Size: 3.44M Bit Rate: 112k | ||
+ | Encoding: MPEG audio | ||
+ | Channels: 2 @ 16-bit | ||
+ | Samplerate: 44100Hz | ||
+ | Replaygain: off | ||
+ | Duration: 00: | ||
+ | |||
+ | </ | ||
+ | |||
+ | You also can use mixer for change volume: | ||
+ | <code bash> | ||
+ | alsamixer | ||
+ | |||
+ | </ | ||
===== TroubleShooting ===== | ===== TroubleShooting ===== | ||
==== Diagnostic and information gathering ==== | ==== Diagnostic and information gathering ==== | ||
+ | |||
+ | For first -try gathering some useful information about your situation: | ||
+ | |||
+ | <code bash> | ||
+ | lspci | ||
+ | </ | ||
+ | |||
+ | Gives you info about hardware devices sits on PCI and PCIe bus of your computer | ||
+ | |||
+ | < | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | gives you information about cards found your sound system and its numerating. 0 card is be default card. | ||
+ | |||
+ | |||
+ | there is also some another useful commands: | ||
+ | |||
+ | <code bash> | ||
+ | aplay -l | ||
+ | </ | ||
+ | | ||
+ | |||
+ | <code bash> | ||
+ | aplay -L | ||
+ | </ | ||
+ | |||
+ | and even | ||
+ | |||
+ | <code bash> | ||
+ | lsmod | ||
+ | </ | ||
+ | |||
+ | |||
==== Make a right soundcard as first (default) ==== | ==== Make a right soundcard as first (default) ==== | ||
+ | Firstly, make a file called sound.conf under / | ||
+ | <code bash> | ||
+ | ##alias char-major-116 snd | ||
+ | options snd cards_limit=2 slots=snd-emu10k1, | ||
+ | # LHB6.mOmgEN0gox0: | ||
+ | alias snd-card-0 snd-emu10k1 | ||
+ | alias sound-slot-0 snd-emu10k1 | ||
+ | # W60f.x8s5HMdIibD: | ||
+ | alias snd-card-1 snd-hda-intel | ||
+ | alias sound-slot-1 snd-hda-intel | ||
+ | |||
+ | ##options snd-emu10k1 enable=1 index=0 max_buffer_size=756 | ||
+ | options snd-emu10k1 enable=1 index=0 max_buffer_size=1750 | ||
+ | |||
+ | options snd-hda-intel enable=1 index=1 | ||
+ | |||
+ | </ | ||
Line 103: | Line 214: | ||
Ok, what is workaround? | Ok, what is workaround? | ||
there is two: decrease memory size used by system at boot stage to 2 Gb - use at lilo kernel parameter | there is two: decrease memory size used by system at boot stage to 2 Gb - use at lilo kernel parameter | ||
+ | |||
'' | '' | ||
Line 110: | Line 222: | ||
change in string: | change in string: | ||
- | + | <code bash> | |
- | '' | + | |
- | # | + | /* 4GB broken PCI/AGP hardware bus master zone */ |
+ | # | ||
+ | |||
+ | </ | ||
change 4UL to 2UL: | change 4UL to 2UL: | ||
| | ||
- | '' | + | <code bash> |
+ | | ||
/* 4GB broken PCI/AGP hardware bus master zone */ | /* 4GB broken PCI/AGP hardware bus master zone */ | ||
- | # | + | # |
- | + | ||
+ | </ | ||
+ | | ||
after that need to recompile kernel. after that you get usable 1 Gb RAM for SB Live /Audigy Rx soundfonts. | after that need to recompile kernel. after that you get usable 1 Gb RAM for SB Live /Audigy Rx soundfonts. | ||
if you want more - you need edit also | if you want more - you need edit also | ||
Line 126: | Line 243: | ||
| | ||
- | + | <code bash> | |
- | '' | + | err = snd_card_create(index[dev], |
if (err < 0) | if (err < 0) | ||
return err; | return err; | ||
Line 139: | Line 256: | ||
&emu)) < 0) | &emu)) < 0) | ||
goto error; | goto error; | ||
- | '' | + | |
+ | </ | ||
- | you must comment | + | you must comment |
+ | |||
+ | <code bash> | ||
else if (max_buffer_size[dev] > 1024) | else if (max_buffer_size[dev] > 1024) | ||
max_buffer_size[dev] = 1024; | max_buffer_size[dev] = 1024; | ||
+ | </ | ||
| | ||
+ | And then there is one else thing: default memory size for soundfonts is 128 Mb. If you want to increase it, you must create a sound.conf file in / | ||
+ | |||
+ | write in file / | ||
+ | <code bash> | ||
+ | |||
+ | options snd-emu10k1 | ||
+ | |||
+ | </ | ||
+ | |||
+ | where max_buffer_size reffers to amount of RAM dedicated to soundfonts, in megabytes. in that case its about 1.7 Gb. | ||
+ | |||
| | ||
- | | + | <note tip> |
+ | </ | ||
| | ||
====== Useful Links: ====== | ====== Useful Links: ====== | ||
Line 157: | Line 290: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[http:// | ||
====== Sources ====== | ====== Sources ====== | ||
Originally written by --- // | Originally written by --- // | ||
+ | |||
+ | Rewrited with used materials from " | ||
Edited by --- // | Edited by --- // |