Penguin
Annotated edit history of AudioNotes version 8, including all changes. View license author blame.
Rev Author # Line
8 LawrenceDoliveiro 1 [Overview of different Linux sound APIs|http://0pointer.de/blog/projects/guide-to-sound-apis.html]
2
7 LawrenceDoliveiro 3 [OSS|OpenSoundSystem] is an older sound system for Linux.
2 JohnMcPherson 4
7 LawrenceDoliveiro 5 [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.
4 JohnMcPherson 6
7 sox(1) is a command-line program that can convert between different unix audio formats - see SoxNotes for more info.
2 JohnMcPherson 8
1 PerryLorier 9 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.
6 LawrenceDoliveiro 10
11 !!! Software playback of [MIDI] files
12
13 [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>.
14
15
16 !!! Playing [MIDI] files on a SBLive! sound card
17
18 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.
19
20 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].)
21
22 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>:''''
23
24 <verbatim>
25 Device: Emu10k1
26 Ports: 4
27 Addresses: 65:0 65:1 65:2 65:3
28 Use Counter: 0
29 Max Voices: 64
30 Allocated Voices: 0
31 Memory Size: 134217728
32 Memory Available: 126786844
33 Allocated Blocks: 527
34 SoundFonts: 1
35 Instruments: 1849
36 Samples: 526
37 Locked Instruments: 1849
38 Locked Samples: 526
39 </verbatim>
40
41 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>
42
43 Make sure the volume for the sequencer isn't muted; in <tt>alsamixer</tt>, you are looking for the slider named "Music".
3 PerryLorier 44
45 ----
46 CategoryNotes