FGCOM Testing: Difference between revisions

Jump to navigation Jump to search
→‎Special for Linux (.alsoftrc): Reformated with grammar corrections, including notes concerning obsolete lines
m (change server "delta384.server4you.de" to new "fgcom01.flightgear.org")
(→‎Special for Linux (.alsoftrc): Reformated with grammar corrections, including notes concerning obsolete lines)
Line 267: Line 267:
So know your standard settings and check if they have changed (without your written permission!)
So know your standard settings and check if they have changed (without your written permission!)
<br /><br />
<br /><br />
==== Special for Linux (.alsoftrc) ====
==== Linux ALSA Sound ====
(ref [[Linux software audio mixing with FlightGear]]) <br />
(Reference [[Linux software audio mixing with FlightGear]]) <br />
check your Home-directory (“~/”) for a file "'''.alsoftrc'''"
 
(remember that the “show hidden files” must be enabled!)
Check your Home-directory (“~/” or $HOME) for a file "'''.alsoftrc'''"
* if ".alsoftrc" does not exist
(Remember that the “show hidden files” must be enabled!)
** Check if there is a (old version) ".openalrc"
 
*** if yes: Check if you really use the old OpenAL library and not the newer OpenAL-soft library. If still have the old you put something like this in ".openalrc":
===== If using Creative Labs' OpenAL library (or older OpenAL version) =====
(define devices '(alsa))
Check if you are using the old Creative Labs OpenAL library (or old version) which uses the ".openalrc" configuration file. If so, you can put something like this within ".openalrc":
(define alsa-out-device "plug:dmix")
 
** if not, create a new ".alsoftrc" file and insert something like the following into it:
$HOME/.openalrc
format = AL_FORMAT_STEREO16
<pre>
cf_level = 1
(define devices '(alsa))
drivers = alsa
(define alsa-out-device "plug:dmix")
[alsa] # ALSA backend stuff
(device alsa-in-device "plug:dsnoop")
device = plug:dmix
</pre>
capture = plug:dsnoop
 
===== If using OpenAL Soft (or newer OpenAL version) =====
It is more likely users of more recent Linux distributions are using this newer OpenAL Soft package, instead of the previously mentioned older Create Labs' OpenAL.  (Hence, the likely rational for renaming the default configuration file to something other than the more common previous naming format.)
 
Copy either the be /etc/openal/alsoft.conf, /usr/share/doc/openal-1.15.1-r2/alsoftrc.sample.bz2, or create a new $HOME/.alsoftrc file and insert the following:
 
<pre><nowiki>
format = AL_FORMAT_STEREO16
cf_level = 1
drivers = alsa
[alsa]
device = plug:dmix
capture = plug:dsnoop
</nowiki></pre>
 
[NOTE: format is now "sample-type = uint16", and cf_level would appear not needed for typical users, or only desired for headphone users.]
 
The system wide OpenAL-soft configuration file may be /etc/openal/alsoft.conf or similar. It usually contains comments describing all possible configuration options.
The system wide OpenAL-soft configuration file may be /etc/openal/alsoft.conf or similar. It usually contains comments describing all possible configuration options.
<br /><br />
<br /><br />
===== Linux ALSA Audiophiles avoiding Dmix =====
For audiophiles using Linux ALSA and with their custom $HOME/.asoundrc file preventing DMix usage, make sure you have both specified "device = plug:dmix" as well as "capture = plug:dsnoop".  Per ALSA's page, "dsnoop is the equivalent of the dmix plugin, but for recording sound."  Without specifying using dsnoop for the capture device alongside your $HOME/.asoundrc file preventing DMix usage, you will likely only get silence played back when usage FGCom.  FGCom is not working at this point, as the sound device is likely still locked by your $HOME/.asoundrc file and only recording silence or playing back silence during the echo test!
===== Using ALSA Custom "plug:" Filters =====
The OpenAL Soft (or the newer version of OpenAL) $HOME/.alsoftrc file also accepts using other $HOME/.asoundrc "plug:" incanatations, such as sections containing Dmix - alsa.opensrc.org's "pcm.dmixs51" customization for using DMix with 5.1 Surround Sound, and called as:
<pre>$ aplay -D "plug:dmixs51" Some_PCM_WAV_File.wav </pre>
$HOME/.alsoftrc
<pre>
"device = plug:dmixs51"
</pre>
Just remember to also uncomment layout_surround51, and note the likely fact FlightGear is still only using Stereo sound (or two channel audio) and is only set here for an example!
==== USB-Headsets-Problems with Linux (Ubuntu) ====
==== USB-Headsets-Problems with Linux (Ubuntu) ====
The following is based/verified on Ubuntu, but should be similar on other distributions:
The following is based/verified on Ubuntu, but should be similar on other distributions:
24

edits

Navigation menu