mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
optimize a getValue
This commit is contained in:
parent
42feccea37
commit
63200ea395
@ -127,7 +127,7 @@ HandleAudioProcess(_THIS)
|
||||
}
|
||||
|
||||
for (var j = 0; j < $1; ++j) {
|
||||
channelData[j] = getValue($0 + (j*numChannels + c)*4, 'float');
|
||||
channelData[j] = HEAPF32[$0 + ((j*numChannels + c) << 2) >> 2];
|
||||
}
|
||||
}
|
||||
}, buf, byte_len / bytes / this->spec.channels);
|
||||
|
Loading…
Reference in New Issue
Block a user