[Plib-users] Patch for plib and alsa oss emulation
Brought to you by:
sjbaker
From: Felix <fx...@gm...> - 2002-07-25 22:48:58
|
Hi, I had trouble using plib with alsa oss emulation using the intel8x0 alsa driver on a SiS7012 onboard sound device. Tuxkart and Flightgear both gave me error messages about the sound device being temporarily unavailable. At the same time the sound was scrambled and the programmes seemed to be hanging otherwise. 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. However, it introduces a new function slDSP::fragmentsRemaining which would have to be implemented (as dummy?) for other platforms. Regards, Felix Kühling __\|/__ ___ ___ ___ __Tschüß_______\_6 6_/___/__ \___/__ \___/___\___You can do anything,___ _____Felix_______\Ä/\ \_____\ \_____\ \______U___just not everything____ fx...@gm... >o<__/ \___/ \___/ at the same time! |