General > Discussion

stutteringly sound

(1/2) > >>

f-bert:
ok if i would renice the process:

renice [ufoai] -15

then the sound works fine in the game. but so i will get stutteringly menues.
maybe there is something wrong with the priority of the sound thread!?

daniel

Mattn:
which driver? alsa, oss, sdl?

f-bert:
i used alsa on ubuntu dapper.
the both other dirver oss and sdl doesn't work.
but it should normaly, because i have emu10k sound chip with hardware mixing....

Mattn:
for oss try this:
--- Code: ---
echo "ufo 0 0 direct" > /proc/asound/card0/pcm0p/oss

--- End code ---


for sdl you can set the audiodriver via an environment var:
available drivers (may differ - depends on how sdl-libs are compiled by you or your vendor)
--- Code: ---
openbsd (OpenBSD)
dsp (OSS /dev/dsp: Linux, Solaris, BSD etc)
alsa (Linux)
audio (Unix style /dev/audio: SunOS, Solaris etc)
AL (Irix)
artsc (ARTS audio daemon)
esd (esound audio daemon)
nas (NAS audio daemon)
dma (OSS /dev/dsp, using DMA)
dsound (Win32 DirectX)
waveout (Win32 WaveOut)
baudio (BeOS)
sndmgr (MacOS SoundManager)
paud (AIX)
AHI (Amiga)

--- End code ---


out this into your ufo-ai wrapper
--- Code: ---
export SDL_AUDIO_DRIVER [driver_from_list_above]

--- End code ---

Mattn:
forgot about one thing: there is a second approach to implement alsa. rename the current snd_aksa.c in src/linux to and snd_alsa.c.tmp or somthing and then rename the snd_alsa.c.new to snd_alsa.c

i´ve not tested this driver for quit a long time - but maybe it will work for you - please give feedback,

Navigation

[0] Message Index

[#] Next page

Go to full version