]> git.mxchange.org Git - flightgear.git/blob - docs-mini/README.sound
Updated to document the new 3d positional tags that are available for
[flightgear.git] / docs-mini / README.sound
1
2 ALSA surround sound (5.1) setup
3 -------------------------------------
4 (taken from http://floam.ascorbic.com/how-to/alsa5.1)
5
6 Make a ~/.openalrc, we are telling OpenAL that we want surround sound and
7 we want to use ALSA instead of OSS.
8
9 (define speaker-num 4)
10 (define devices '(alsa))
11 (define alsa-out-device "surround40:0,0")
12
13
14 ALSA and Arts
15 -------------------------------------
16
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.
25
26 This command:
27 echo "fgfs 0 0 direct" >/proc/asound/card0/pcm0p/oss
28
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")
32
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)
36
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
40
41 Computer info:
42
43 kernel 2.6.5
44
45 flightgear 0.9.4
46 simgear 0.3.5
47 plib 1.8.3
48
49 soundcard is onboard an asus p4p800-e deluxe mobo (using snd-intel8x0), alsa, related modules from lsmod:
50 Module                  Size  Used by
51 snd_pcm_oss            53252  1
52 snd_mixer_oss          19968  1 snd_pcm_oss
53 snd_intel8x0           33476  1
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
62 soundcore              10208  2 snd