Configuring the Server Config File

The default server config file should work for most people using OSS or ALSA with OSS emulation. Nevertheless, many will want to edit the file to tune device options, select default devices, or enable native ALSA support. The file is fairly self-explanatory, it will most likely have been installed in /usr/local/lib/gdam/server.config. It contains a list of device types (OSS,ALSA), a list of specific devices, and some global server options. An abbreviated example follows:

 

#    GDAM Server Config File
#
# This is the default server config file that should
# be shipped with distributions.
#
# Please delete this comment when you edit it!
#


#
# define the types of output devices available.
#   
DeviceType      "plugin"        "oss"
#DeviceType      "plugin"        "alsa"


#
#  If you have OSS or ALSA + OSS compatability, use these.
#  Some devices need the 'fork' option to keep from hanging.
#
#Device   "oss"   "/dev/dsp"   "numfragments=3:logfragsize=12:fork"
Device    "oss"   "/dev/dsp"
Device    "oss"   "/dev/dsp1"
Device    "oss"   "/dev/dsp2"


#
# ALSA Devices [if you have sys/asoundlib.h installed.]
#
#  appending '#n' to a device name causes gdam to use subdevice n, 
#  if possible.   otherwise, the first available subchannel is used.  
#  You probably don't want entries for both specific subdevices and 
#  the general device, it may conflict.
#
#Device  "alsa"  "/dev/snd/pcmC0D0"   "numfragments=3:logfragsize=12"
#Device  "alsa"  "/dev/snd/pcmC0D0#0" "numfragments=3:logfragsize=12"
#Device  "alsa"  "/dev/snd/pcmC0D0#1" "numfragments=3:logfragsize=12"
#Device  "alsa"  "/dev/snd/pcmC0D1"   "numfragments=3:logfragsize=12"


# Don't allow mpg123 to swallow all the cpu from us...
ExternalPriorityDrop   "7"

#
# If server is run as root, change to this user and group for safety.
#
IfRoot User     "nobody"
IfRoot Group    "audio"

#
# Files to store log info and pid
#
LogFile         "/var/log/gdam.log"
PidFile         "/var/run/gdam.pid"

#
# Whether to run in daemon mode  
# (runs in background with different permissions)
#
Daemon          "no"

#
# If you specify `no' then anyone can connect.  Else, only 
# localhost connections are accepted.
#
BindLocalhost   "yes"


Debug           "no"

#DispatchLog     "dispatch.log"
#Microphone "/dev/dsp1"
#TcpSocket      "6005"          "punk"
ExternalPriorityDrop

This causes the GdasExternal class to renice the child process the specified number of steps.

There are a few device options you may wish to try out:

bits=[8|16]

How many bits per sample for the sound device.

mono

Monophonic aka one-channel sound.

stereo

Stereo aka two-channel sound.

rate

Sampling rate of the device in samples per second.

fork

Fork the device into its own process. This is necessary if your sound device doesn't support "polling". If clents hang, timers stuck at 0:00, this might be the answer.

wrong_endian

Swap byte order of sound for this device. If you hear static, try this option.

logfragsize

Log base 2 of the size of a single audio buffer fragment. Larger sizes increase latency but protect against dropout.

numfragments

Number of audio buffer fragments to circle through. Larger numbers increase latency but protect against dropout.

no_ioctls

Don't attempt to send the device the normal ioctls, which may fail on some devices spuriously, but is mostly useful if the "device" is really just a fifo.

Slot Min Depo 5k Pilihan Tepat untuk Pemula

Bagi pemula yang ingin mencoba keberuntungan dalam dunia permainan slot online, Slot Min Depo 5k bisa menjadi solusi ideal. Dengan modal yang kecil, Anda dapat memulai permainan dan memahami cara kerja mesin slot tanpa risiko besar. Hal ini juga memungkinkan pemain untuk mengeksplorasi berbagai jenis game slot yang tersedia di situs-situs terkemuka.

Paylines atau garis pembayaran adalah jalur di mana kombinasi simbol harus muncul agar player Slot Gacor mudah memenangkan hadiah, dan semakin banyak paylines yang dimainkan, semakin besar peluang untuk mendapatkan kombinasi yang menang. Jadi, kalau kamu ingin meningkatkan peluang menang, mainkan sebanyak mungkin paylines yang tersedia. Selain itu, beberapa game juga menawarkan fitur bonus yang bisa bikin pengalaman bermain semakin seru. Ingat, lebih banyak garis pembayaran bisa berarti lebih banyak kesempatan untuk menang, jadi jangan ragu untuk mencoba!

Related Links