2 ALSA surround sound (5.1) setup
3 -------------------------------------
4 (taken from http://floam.ascorbic.com/how-to/alsa5.1)
6 Make a ~/.openalrc, we are telling OpenAL that we want surround sound and
7 we want to use ALSA instead of OSS.
10 (define devices '(alsa))
11 (define alsa-out-device "surround40:0,0")
15 -------------------------------------
17 I'm using kernel 2.6.5 with alsa, my sound module is snd-intel8x0. When I ran
18 fgfs, I'd get quite 'choppy' sound (wasn't smooth, there'd be a couple of
19 breaks in the sound every second or so). Running arts, and starting fgfs with
20 "artsdsp fgfs" (from the artsdsp website: "When an application is run under
21 artsdsp all accesses to the /dev/dsp audio device are intercepted and mapped
22 into aRts API calls. While the device emulation is not perfect, most
23 applications work this way, albeit with some degradation in performance and
24 latency.") would improve the situation, but it seemed to still be choppy.
27 echo "fgfs 0 0 direct" >/proc/asound/card0/pcm0p/oss
29 (from the alsa kernel OSS emulation website:
30 "The direct option is used, as mentioned above, to bypass the automatic
31 conversion and useful for MMAP-applications")
33 made my sound work beautifully when fgfs was run with artsdsp. Running without
34 artsdsp however (with artsd suspended or killed), would give me no sound at all
35 (which I find a bit strange)
37 The following websites might help people with similar troubles:
38 http://www.alsa-project.org/~iwai/OSS-Emulation.html
39 http://www.arts-project.org/doc/handbook/artsdsp.html
49 soundcard is onboard an asus p4p800-e deluxe mobo (using snd-intel8x0), alsa, related modules from lsmod:
52 snd_mixer_oss 19968 1 snd_pcm_oss
54 snd_ac97_codec 63492 1 snd_intel8x0
55 snd_pcm 97408 2 snd_pcm_oss,snd_intel8x0
56 snd_timer 26112 1 snd_pcm
57 snd_page_alloc 11396 2 snd_intel8x0,snd_pcm
58 snd_mpu401_uart 7936 1 snd_intel8x0
59 snd_rawmidi 24832 1 snd_mpu401_uart
60 snd_seq_device 8324 1 snd_rawmidi
61 snd 53892 9 snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device