зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ad45a8d475
Коммит
59c4ccaacc
|
@ -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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче