Date: Sat, 25 Dec 1999 12:06:28 +0900 From: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> To: dmmiller@cvzoom.net Cc: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> Subject: Re: more patch for secondary buffer, polling and DMA emulation in pcm Message-ID: <14436.13492.839612.72159A@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> In-Reply-To: In your message of "Fri, 24 Dec 1999 10:39:31 %2B0900" <14434.52947.683451.72159A@rina.r.dl.itc.u-tokyo.ac.jp> References: <14429.46098.1195.72159A@rina.r.dl.itc.u-tokyo.ac.jp> <14433.63218.157116.72159A@silver.carrots.uucp.r.dl.itc.u-tokyo.ac.jp> <386278C7.B748EEF5@cvzoom.net> <14434.52947.683451.72159A@rina.r.dl.itc.u-tokyo.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 24 Dec 1999 10:39:31 +0900, Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> said: Seigo> players. My sound cards are SB32, SB64 and CS461x, so the problem is Seigo> likely to be in channel.c or dsp.c. OK, here is the result of my investigation on RealPlayer 5.0: RealPlayer 5.0 is an ill-behaving application in two points. First, it passes a size of 16 to SNDCTL_DSP_SETFRAGMENT. This size is obviously too small to buffer pcm data. Second, RealPlayer 5.0 often attempts to write larger pcm data than the block size of the secondary buffer. The result is to write only a part of pcm data ending up with an error, and make polling really weird. AFAIK these problems are fixed in RealPlayer G2. The following fixes are somewhat klutzy, but seem to work: - If a device is in nonblocking mode, adapt the block size to the pcm data to write. - Poll the remaining size to write, rather than that of free space. These fixes are included in: http://people.freebsd.org/~tanimura/patches/newmidi/2ndbuf-19991225.diff.gz -- Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> <tanimura@freebsd.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14436.13492.839612.72159A>