Penguin

Differences between current version and revision by previous author of AudioNotes.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 8 Last edited on Friday, September 26, 2008 10:06:02 pm by LawrenceDoliveiro
Older page: version 5 Last edited on Thursday, April 6, 2006 9:48:44 am by IanMcDonald Revert
@@ -1,10 +1,46 @@
-[OSS] is an older sound system for Linux. 
+[Overview of different Linux sound APIs|http://0pointer .de/blog/projects/guide-to-sound-apis.html]  
  
-[ALSA] is a newer project (with a larger scope than [OSS]). It is in the 2.6 and later versions of the LinuxKernel, and has [OSS] compatibility for older applications and libraries. See AlsaNotes. 
+[OSS|OpenSoundSystem] is an older sound system for Linux.  
+  
+ [ALSA] is a newer project (with a larger scope than [OSS|OpenSoundSystem ]). It is in the 2.6 and later versions of the LinuxKernel, and has [OSS|OpenSoundSystem ] compatibility for older applications and libraries. See AlsaNotes. 
  
 sox(1) is a command-line program that can convert between different unix audio formats - see SoxNotes for more info. 
  
 Someone did searches on google for how to unmute audio from the command line using aumix(1), so I thought I better write some content about it. Muting in aumix appears to be accomplished by setting all of volume sliders to 0. Unmuting is restoring it to it's saved position. To achieve this from the command line you can save the current settings use "-f ~/.unmutesettings -S" and then set the master volume to 0 using -v 0. To unmute it aumix "-L -f ~/.unmutesettings". This is untested. 
+  
+!!! Software playback of [MIDI] files  
+  
+[TiMidity++ | http://timidity.sourceforge.net/] is a software synthesizer that reads [MIDI] files and computes regular sample data that can be played back with any soundcard just like an [MP3] or [Ogg]. Most distributions include it as a [Package] called <tt>timidity</tt>.  
+  
+  
+!!! Playing [MIDI] files on a SBLive! sound card  
+  
+To play [MIDI] files, load "sound fonts" into the sound card's memory, and then use those to play [MIDI] files. Sound fonts are collections of samples for the [MIDI] sequencer wave table; the [CDROM] that came with your soundcard has some.  
+  
+Your [ALSA] drivers must have been built with the <tt>--with-sequencer=yes</tt> configure option, and you need the [sfxload| http://mitglied.lycos.de/iwai/] program. It is designed for the SB AWE32 and AEW64, but works with SBLive cards too. (In [Debian] it’s available as the <tt>awesfx</tt> [Package].)  
+  
+You can load a sound font by issuing something like <tt>sfxload 8mbgmsfx.sf2</tt>. You can check that it is loaded into the soundcard's memory by doing <tt>cat /proc/asound/card0/wavetableD1</tt>:''''  
+  
+ <verbatim>  
+ Device: Emu10k1  
+ Ports: 4  
+ Addresses: 65:0 65:1 65:2 65:3  
+ Use Counter: 0  
+ Max Voices: 64  
+ Allocated Voices: 0  
+ Memory Size: 134217728  
+ Memory Available: 126786844  
+ Allocated Blocks: 527  
+ SoundFonts: 1  
+ Instruments: 1849  
+ Samples: 526  
+ Locked Instruments: 1849  
+ Locked Samples: 526  
+ </verbatim>  
+  
+Then play a file using the <tt>playmidi</tt> program using the <tt>-a</tt> option to tell it to be AWE-compatible: <tt>playmidi -a dukenukem.mid</tt>  
+  
+Make sure the volume for the sequencer isn't muted; in <tt>alsamixer</tt>, you are looking for the slider named "Music".  
  
 ---- 
 CategoryNotes