e37e6d06d1
<rxg@ms25.url.com.tw>, the maintainer of this package). Changes are bugfixes, and use of the native NetBSD sound API instead of OSS emulation.
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
$NetBSD: patch-ak,v 1.2 2000/10/18 11:22:44 rh Exp $
|
|
|
|
--- ../buffer.c.orig Sat Dec 13 06:58:08 1997
|
|
+++ ../buffer.c Sun Oct 1 15:47:56 2000
|
|
@@ -226,7 +226,17 @@
|
|
|
|
percentFull=100*bufferSize(&audioBuffer)/AUDIO_BUFFER_SIZE;
|
|
#if defined(DEBUG)
|
|
- if ((cntr++ % (16/(AUSIZ/4096)))==0) msg("\rBuffer (%2d%%) %6d",percentFull,bufferSize(&audioBuffer));
|
|
+ if (AUSIZ >= 4096) {
|
|
+ if ((cntr++ % (16/(AUSIZ/4096)))==0)
|
|
+ msg("\nBuffer(%2d%%) %6d\n",
|
|
+ percentFull,
|
|
+ bufferSize(&audioBuffer));
|
|
+ } else {
|
|
+ if ((cntr++ % (16 * AUSIZ)) == 0)
|
|
+ msg("\nBuffer(%2d%%) %6d\n",
|
|
+ percentFull,
|
|
+ bufferSize(&audioBuffer));
|
|
+ }
|
|
#endif
|
|
if (AUSIZ>bytesToEnd) {
|
|
cnt = audioWrite(audioBuffer.bufferPtr + audioBuffer.outPos, bytesToEnd);
|