Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef FIX_AIC
- #define DC_MAX 32767
- #define DC_OFFSET 2992
- // ***********************************************************
- //
- // _fix_aic, add ~3000 DC offset
- //
- // ***********************************************************
- void _fix_aic( SHORT *src, int num )
- {
- while( num-- ) {
- SHORT s = *src;
- if( s < DC_MAX - DC_OFFSET )
- *src++ = s + DC_OFFSET;
- else
- *src++ = DC_MAX;
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement