summaryrefslogtreecommitdiff
path: root/audio/xamp/patches/patch-ak
diff options
context:
space:
mode:
Diffstat (limited to 'audio/xamp/patches/patch-ak')
-rw-r--r--audio/xamp/patches/patch-ak30
1 files changed, 30 insertions, 0 deletions
diff --git a/audio/xamp/patches/patch-ak b/audio/xamp/patches/patch-ak
new file mode 100644
index 00000000000..bfd2bcf773c
--- /dev/null
+++ b/audio/xamp/patches/patch-ak
@@ -0,0 +1,30 @@
+diff -c ../buffer.c:1.1.1.1 xamp/buffer.c:1.2
+*** ../buffer.c:1.1.1.1 Wed Jun 14 22:23:45 2000
+--- ../buffer.c Wed Jun 14 22:23:45 2000
+***************
+*** 226,232 ****
+
+ percentFull=100*bufferSize(&audioBuffer)/AUDIO_BUFFER_SIZE;
+ #if defined(DEBUG)
+! if ((cntr++ % (16/(AUSIZ/4096)))==0) msg("\rBuffer (%2d%%) %6d",percentFull,bufferSize(&audioBuffer));
+ #endif
+ if (AUSIZ>bytesToEnd) {
+ cnt = audioWrite(audioBuffer.bufferPtr + audioBuffer.outPos, bytesToEnd);
+--- 226,242 ----
+
+ percentFull=100*bufferSize(&audioBuffer)/AUDIO_BUFFER_SIZE;
+ #if defined(DEBUG)
+! 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);