Search
lxdream.org :: lxdream/src/aica/aica.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/aica.c
changeset 43:0cf3e339cc59
prev37:1d84f4c18816
next44:8da2cbcffe24
author nkeynes
date Mon Dec 26 11:47:15 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Add sh4 + arm breakpoints
Hook up break button in GUI
Enable ARM slice in main loop
file annotate diff log raw
1.1 --- a/src/aica/aica.c Mon Dec 26 06:38:51 2005 +0000
1.2 +++ b/src/aica/aica.c Mon Dec 26 11:47:15 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: aica.c,v 1.7 2005-12-26 06:38:51 nkeynes Exp $
1.6 + * $Id: aica.c,v 1.8 2005-12-26 11:47:15 nkeynes Exp $
1.7 *
1.8 * This is the core sound system (ie the bit which does the actual work)
1.9 *
1.10 @@ -69,9 +69,10 @@
1.11 int reset = MMIO_READ( AICA2, AICA_RESET );
1.12 if( reset & 1 == 0 ) {
1.13 /* Running */
1.14 - /* nanosecs = arm_run_slice( nanosecs ); */
1.15 + nanosecs = arm_run_slice( nanosecs );
1.16 }
1.17 /* Generate audio buffer */
1.18 + return nanosecs;
1.19 }
1.20
1.21 void aica_stop( void )
1.22 @@ -90,15 +91,15 @@
1.23 }
1.24
1.25 /** Channel register structure:
1.26 - * 00
1.27 - * 04
1.28 + * 00 4 Channel config
1.29 + * 04 4 Waveform address lo (16 bits)
1.30 * 08 4 Loop start address
1.31 * 0C 4 Loop end address
1.32 * 10 4 Volume envelope
1.33 - * 14
1.34 - * 18 4 Frequency (floating point
1.35 - * 1C
1.36 - * 20
1.37 + * 14 4 Init to 0x1F
1.38 + * 18 4 Frequency (floating point)
1.39 + * 1C 4 ??
1.40 + * 20 4 ??
1.41 * 24 1 Pan
1.42 * 25 1 ??
1.43 * 26
.