Home Download Musics Developers
API Sources Tools File Format Technicals

mixer68.h

Go to the documentation of this file.
00001 
00012 #ifndef _MIXER68_H_
00013 #define _MIXER68_H_
00014 
00015 #include "emu68/type68.h"
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00041 #define MIXER68_SAME_SIGN                 0x00000000 
00042 #define MIXER68_CHANGE_LEFT_CHANNEL_SIGN  0x00008000 
00043 #define MIXER68_CHANGE_RIGHT_CHANNEL_SIGN 0x80000000 
00044 #define MIXER68_CHANGE_SIGN               0x80008000 
00054 void SC68mixer_stereo_16_LR(u32 *dest, u32 *src, int nb,
00055                             const u32 sign);
00056 
00066 void SC68mixer_stereo_16_RL(u32 *dest, u32 *src, int nb,
00067                             const u32 sign);
00068 
00082 void SC68mixer_stereo_FL_LR(float *dest, u32 *src, int nb,
00083                             const u32 sign, const float norm);
00084 
00093 void SC68mixer_dup_L_to_R(u32 *dest, u32 *src, int nb, const u32 sign);
00094 
00103 void SC68mixer_dup_R_to_L(u32 *dest, u32 *src, int nb, const u32 sign);
00104 
00127 void SC68mixer_blend_LR(u32 *dest, u32 *src, int nb,
00128                         int factor,
00129                         const u32 sign_r, const u32 sign_w);
00130 
00154 void SC68mixer_mult_LR(u32 * dest, u32 * src, int nb,
00155                        const int ml, const int mr,
00156                        const u32 sign_r, const u32 sign_w);
00157 
00164 void SC68mixer_fill(u32 *dest, int nb,
00165                     const u32 sign);
00166 
00171 #ifdef __cplusplus
00172 }
00173 #endif
00174 
00175 #endif /* #ifndef _MIXER68_H_ */