Changeset 987:a4a6de70a746 in roaraudio for libroardsp/filter_quantify.c
- Timestamp:
- 12/18/08 15:49:24 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/filter_quantify.c
r979 r987 42 42 s = samp[i]; 43 43 s /= 32768; 44 s *= ( int32_t)filter->inst;44 s *= (ROAR_INSTINT)filter->inst; 45 45 s = (int16_t)s; 46 46 // ROAR_WARN("roardsp_quantify_calc16(*): s=%f", s); 47 s /= ( int32_t)filter->inst;47 s /= (ROAR_INSTINT)filter->inst; 48 48 s *= 32768; 49 49 samp[i] = s; … … 58 58 59 59 if ( cmd == ROARDSP_FCTL_N ) { 60 old = ( int32_t)filter->inst;61 filter->inst = (void*) *(int32_t*)data;60 old = (ROAR_INSTINT)filter->inst; 61 filter->inst = (void*)(ROAR_INSTINT)*(int32_t*)data; 62 62 *(int32_t*)data = old; 63 63 } else {
Note: See TracChangeset
for help on using the changeset viewer.