Home Download Musics Developers
API Sources Tools File Format Technicals

mwemul.h

Go to the documentation of this file.
00001 
00011 /* Copyright (C) 1998-2003 Benjamin Gerard */
00012 
00013 #ifndef _MWEMUL_H_
00014 #define _MWEMUL_H_
00015 
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 #include "emu68/type68.h"
00021 
00033 #define MW_ACTI 0x01        
00035 #define MW_BASH 0x03        
00036 #define MW_BASM (MW_BASH+2) 
00037 #define MW_BASL (MW_BASH+4) 
00039 #define MW_CTH 0x09         
00040 #define MW_CTM (MW_CTH+2)   
00041 #define MW_CTL (MW_CTH+4)   
00043 #define MW_ENDH 0x0f        
00044 #define MW_ENDM (MW_ENDH+2) 
00045 #define MW_ENDL (MW_ENDH+4) 
00047 #define MW_MODE 0x21        
00049 #define MW_DATA 0x22        
00050 #define MW_CTRL 0x24        
00059 extern u8 mw[0x40]; 
00060 extern u32 mw_ct;   
00061 extern u32 mw_end;  
00079 unsigned int MW_sampling_rate(unsigned int f);
00080 
00096 int MW_reset(void);
00097 
00111 int MW_init(void);
00112 
00137 void MW_mix(u32 *b, const u8 * mem68, int n);
00138 
00156 void MW_set_LMC_mixer(unsigned int n);
00157 
00165 void MW_set_LMC_master(unsigned int n);
00166 
00176 void MW_set_LMC_left(unsigned int n);
00177 
00185 void MW_set_LMC_right(unsigned int n);
00186 
00195 void MW_set_LMC_high(unsigned int n);
00196 
00205 void MW_set_LMC_low(unsigned int n);
00206 
00213 #ifdef __cplusplus
00214 }
00215 #endif
00216 
00217 #endif /* #ifndef _MWEMUL_H_*/