Search
lxdream.org :: lxdream/src/aica/aica.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/aica/aica.c
changeset 23:1ec3acd0594d
prev16:f383e7640da4
next30:89b30313d757
author nkeynes
date Fri Dec 23 11:44:55 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Start of "real" time slices, general structure in place now
file annotate diff log raw
1.1 --- a/src/aica/aica.c Tue Dec 13 12:17:26 2005 +0000
1.2 +++ b/src/aica/aica.c Fri Dec 23 11:44:55 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: aica.c,v 1.3 2005-12-13 12:17:26 nkeynes Exp $
1.6 + * $Id: aica.c,v 1.4 2005-12-23 11:44:55 nkeynes Exp $
1.7 *
1.8 * This is the core sound system (ie the bit which does the actual work)
1.9 *
1.10 @@ -27,8 +27,16 @@
1.11 MMIO_REGION_READ_DEFFN( AICA1 )
1.12 MMIO_REGION_READ_DEFFN( AICA2 )
1.13
1.14 -struct dreamcast_module aica_module = { "AICA", aica_init, aica_reset, NULL, NULL,
1.15 - NULL, NULL };
1.16 +void aica_init( void );
1.17 +void aica_reset( void );
1.18 +void aica_start( void );
1.19 +void aica_stop( void );
1.20 +void aica_run_slice( int );
1.21 +
1.22 +
1.23 +struct dreamcast_module aica_module = { "AICA", aica_init, aica_reset,
1.24 + aica_start, aica_run_slice, aica_stop,
1.25 + NULL, NULL, NULL };
1.26
1.27 /**
1.28 * Initialize the AICA subsystem. Note requires that
1.29 @@ -46,6 +54,22 @@
1.30
1.31 }
1.32
1.33 +void aica_start( void )
1.34 +{
1.35 +
1.36 +}
1.37 +
1.38 +void aica_run_slice( int microsecs )
1.39 +{
1.40 + /* Run arm instructions */
1.41 + /* Generate audio buffer */
1.42 +}
1.43 +
1.44 +void aica_stop( void )
1.45 +{
1.46 +
1.47 +}
1.48 +
1.49 /** Channel register structure:
1.50 * 00
1.51 * 04
.