Changeset 856:b61f10a34036 in roaraudio


Ignore:
Timestamp:
09/29/08 00:31:10 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

got 32 bit mode working, yey! :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/mixer.c

    r855 r856  
    106106int mix_clients_32bit (void * output, void ** input, int samples) { 
    107107#ifdef ROAR_NATIVE_INT64 
     108 int32_t ** in  = (int32_t**) input; 
     109 int32_t *  out = (int32_t**) output; 
    108110 int i, s; 
    109111 ROAR_NATIVE_INT64 c; 
     
    113115 
    114116  for (i = 0; input[i]; i++) 
    115    c += ((ROAR_NATIVE_INT64**)input)[i][s]; 
     117   c += in[i][s]; 
    116118 
    117119  if ( c > 21474836487LL ) 
     
    119121  else if ( c < -2147483648LL ) 
    120122   c = -2147483648LL; 
    121   ((int*)output)[s] = (char)c; 
     123  out[s] = (int32_t)c; 
    122124 } 
    123125 
Note: See TracChangeset for help on using the changeset viewer.