On Fri, Feb 27, 2004 at 01:38:16PM +0100, Michel Dänzer wrote: > ioctl(5, SNDCTL_DSP_SETFRAGMENT, 0x7ffff308[4000c]) > > even with the attached patch, which used to be enough to get it working. > Adam's ('small and cosmetic'??? :) patch doesn't help either. with this patch I could use Quake3, java -jar JavaSoundDemo.jar, RealPlayer, FlashPlayer under mozilla and java sounds in browser simultaniously, and xmms too (non mmap mode), and of course ALSA native apps which are using default redefined mixing plugin.
Bad news - some apps probably clear environment or discards LD_PRELOAD so they try get to the hardware anyway even using open call. I observed this with mpg321 and mplayer -ao oss option. So is why I still propose mixing in kernel - besides filtering every open, close, write, read and other important calls with LD_PRELOAD approach means slowdown of apps and potential security risk. Someone could change preloaded lib to some sniffing/filtering worm. So generally using LD_PRELOAD should be discarded. Some of apps are closed source so we just couldn't rewrite them with AOSS stub code or port to ALSA api. So kernel is the only sensible solution IMHO ;-). Back to bzflag. I will be investigating that. I think that something is still broken in parameters refining. So theoretically you could set sound parameters in any order and time, but it isn't quite true. In some cases refining process returns error while in case of another order of setting sound parameters all is ok. I mean that it should be tested on more OSS apps because different order of emulated OSS ioctls may product different behaviour. PS. mpg321 is not working anyway because I have Intel codec fixed to 48kHz and it wants DMA mode and 44100Hz (rate plugin in OSS emulation doesn't supports this). 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_id56&alloc_id438&op=click _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel