Search
lxdream.org :: lxdream/src/aica/audio.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/audio.c
changeset 242:04f5cdb68d8e
prev111:230243c2b520
next431:248dd77a9e44
author nkeynes
date Wed Jan 03 09:00:17 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Adjust timers when they're read rather than waiting until the next time
slice. Also temporarily cut the CPU time by 4.
Initialize the FRQCR register to 0x0E0A for convenience
file annotate diff log raw
1.1 --- a/src/aica/audio.c Thu Mar 16 12:41:59 2006 +0000
1.2 +++ b/src/aica/audio.c Wed Jan 03 09:00:17 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: audio.c,v 1.6 2006-03-16 12:41:59 nkeynes Exp $
1.6 + * $Id: audio.c,v 1.7 2006-12-15 10:19:49 nkeynes Exp $
1.7 *
1.8 * Audio mixer core. Combines all the active streams into a single sound
1.9 * buffer for output.
1.10 @@ -25,7 +25,7 @@
1.11 #include <string.h>
1.12
1.13 #define NUM_BUFFERS 3
1.14 -#define MS_PER_BUFFER 1000
1.15 +#define MS_PER_BUFFER 50
1.16
1.17 #define BUFFER_EMPTY 0
1.18 #define BUFFER_WRITING 1
.