optimize a getValue

This commit is contained in:
Alon Zakai 2016-09-13 00:03:41 -07:00
parent 42feccea37
commit 63200ea395
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ HandleAudioProcess(_THIS)
} }
for (var j = 0; j < $1; ++j) { 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); }, buf, byte_len / bytes / this->spec.channels);