Changeset 987:a4a6de70a746 in roaraudio for libroardsp/filter_quantify.c


Ignore:
Timestamp:
12/18/08 15:49:24 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use ROAR_INSTINT not int32_t for int<->void* casting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/filter_quantify.c

    r979 r987  
    4242  s        = samp[i]; 
    4343  s       /= 32768; 
    44   s       *= (int32_t)filter->inst; 
     44  s       *= (ROAR_INSTINT)filter->inst; 
    4545  s        = (int16_t)s; 
    4646//  ROAR_WARN("roardsp_quantify_calc16(*): s=%f", s); 
    47   s       /= (int32_t)filter->inst; 
     47  s       /= (ROAR_INSTINT)filter->inst; 
    4848  s       *= 32768; 
    4949  samp[i]  = s; 
     
    5858 
    5959 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; 
    6262  *(int32_t*)data = old; 
    6363 } else { 
Note: See TracChangeset for help on using the changeset viewer.