Bug 1500303 correct expected result for stereoPanningWithGain tests r=padenot

Depends on D9212

Differential Revision: https://phabricator.services.mozilla.com/D9213

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Karl Tomlinson 2018-10-19 21:04:37 +00:00
Родитель ad45a8d475
Коммит 59c4ccaacc
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -101,10 +101,8 @@ function expectedBufferForStereo(panning, gain) {
length: BUF_SIZE,
sampleRate: SR });
var gainPanning = gainForPanningStereoToStereo(panning);
gainPanning[0] *= gain;
gainPanning[1] *= gain;
for (var i = 0; i < BUF_SIZE; i++) {
var values = [ sine(i), sine(i) ];
var values = [ gain * sine(i), gain * sine(i) ];
var processed = applyStereoToStereoPanning(values[0], values[1], gainPanning, PANNING);
expectedBuffer.getChannelData(0)[i] = processed[0];
expectedBuffer.getChannelData(1)[i] = processed[1];