Changeset 856:b61f10a34036 in roaraudio for roard/mixer.c
- Timestamp:
- 09/29/08 00:31:10 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/mixer.c
r855 r856 106 106 int mix_clients_32bit (void * output, void ** input, int samples) { 107 107 #ifdef ROAR_NATIVE_INT64 108 int32_t ** in = (int32_t**) input; 109 int32_t * out = (int32_t**) output; 108 110 int i, s; 109 111 ROAR_NATIVE_INT64 c; … … 113 115 114 116 for (i = 0; input[i]; i++) 115 c += ((ROAR_NATIVE_INT64**)input)[i][s];117 c += in[i][s]; 116 118 117 119 if ( c > 21474836487LL ) … … 119 121 else if ( c < -2147483648LL ) 120 122 c = -2147483648LL; 121 ((int*)output)[s] = (char)c;123 out[s] = (int32_t)c; 122 124 } 123 125
Note: See TracChangeset
for help on using the changeset viewer.