return;\r
}\r
\r
- printf("DBG allocated seg: %x, addr: %lx\n", (unsigned int)seg,\r
- (unsigned long)seg << 4);\r
-\r
addr = (uint32_t)seg << 4;\r
next64k = (addr + 0x10000) & 0xffff0000;\r
if(next64k - addr < BUFSIZE) {\r
addr = next64k;\r
}\r
\r
- printf("DBG aligned: %lx (mid: %lx)\n", (unsigned long)addr, (unsigned long)(addr + BUFSIZE / 2));\r
buffer[0] = (void*)addr;\r
buffer[1] = (void*)(addr + BUFSIZE / 2);\r
wrbuf = 0;\r
paused = !paused;\r
if(paused) {\r
audio_pause();\r
- printf("pause\n");\r
+ printf("\npause\n");\r
} else {\r
audio_resume();\r
printf("resume\n");\r
vol += 32;\r
if(vol > 255) vol = 255;\r
audio_setvolume(AUDIO_DEFAULT, vol);\r
- printf("volume: %d%%\n", 101 * vol / 256);\r
+ printf("\nvolume: %d%%\n", 101 * vol / 256);\r
break;\r
\r
case '-':\r
vol -= 32;\r
if(vol < 0) vol = 0;\r
audio_setvolume(AUDIO_DEFAULT, vol);\r
- printf("volume: %d%%\n", 101 * vol / 256);\r
+ printf("\nvolume: %d%%\n", 101 * vol / 256);\r
break;\r
\r
case 'm':\r
prev = dbg_cur_offs;\r
_enable();\r
\r
- printf("%3d%% - offs: %lu/%lu\n", 100 * prev / au->size, prev, au->size);\r
+ printf("%3d%% - offs: %lu/%lu \r", 100 * prev / au->size, prev, au->size);\r
+ fflush(stdout);\r
} else {\r
_enable();\r
}\r
}\r
\r
end:\r
+ putchar('\n');\r
au_close(au);\r
#ifdef DBG_PRELOAD\r
free(dbg_samples);\r