blob: bfd2bcf773c52b7cfe6d743a44214d3bc9190b63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
|