Re: [Plib-users] Patch for plib and alsa oss emulation
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2002-07-27 00:10:04
|
Felix Kühling wrote: > The cause turned out to be that plib writes more data to the > (non-blocking) sound device with the default safety_margin than it can > take. The attached patch fixes this problem for linux, both Tuxkart and > Flightgear work fine :) and it doesn't break Torcs which was ok before. But PLIB asks the OSS API how many bytes are free in the input buffer and always writes that number. I think there must be something wrong with the slDSP::secondsRemaining function for this device. > However, it introduces a new function slDSP::fragmentsRemaining which > would have to be implemented (as dummy?) for other platforms. But that's exactly what 'secondsRemaining' is doing (except that it's supposed to be implemented on every platform and it doesn't export the concept of 'fragments' which isn't meaningful at this level. I don't think this is the correct patch for whatever your problem is. ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |