On Fri, Feb 27, 2004 at 02:49:42PM +0100, Adam Tla/lka wrote:
> Back to bzflag. I will be investigating that.
If you debug aoss ioctl call you find that fragshift is set to 12
and maxfrags to 4. I must read the doc and find what is proper but
maybe there is some parameter mistake.
If you swap the parameters then sound is working.
Change in /usr/src/alsa-20040226/alsa-oss/alsa/pcm.c:
case SNDCTL_DSP_SETFRAGMENT:
{
DEBUG("SNDCTL_DSP_SETFRAGMENT, %p[%x])\n", arg, *(int *)arg);
dsp->fragshift = ((*(int *)arg) >> 16) & 0xffff;
DEBUG("IN: fragshift=%d,", dsp->fragshift);
if (dsp->fragshift < 2)
dsp->fragshift = 2;
dsp->maxfrags = *(int *)arg & 0xffff;
DEBUG(" maxfrags=%d\n", dsp->maxfrags);
if (dsp->maxfrags < dsp->fragshift)
dsp->maxfrags = dsp->fragshift << 1;
DEBUG("OUT: fragshift=%d, maxfrags=%d\n",
dsp->fragshift,
dsp->maxfrags);
err = oss_dsp_params(dsp);
break;
}
Regards
--
Adam Tla/lka mailto:[EMAIL PROTECTED] ^v^ ^v^ ^v^
System & Network Administration Group ~~~~~~
Computer Center, Gdansk University of Technology, Poland
PGP public key: finger [EMAIL PROTECTED]
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel