зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1762620
- Only pad audio buffers when doing up mixing. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D143623
This commit is contained in:
Родитель
2bb356021b
Коммит
2b0e6156c2
|
@ -156,8 +156,10 @@ static void dumbUpDownMix(TYPE* aOut, int32_t aOutChannels, const TYPE* aIn,
|
|||
for (int32_t j = 0; j < commonChannels; j++) {
|
||||
aOut[i * aOutChannels + j] = aIn[i * aInChannels + j];
|
||||
}
|
||||
for (int32_t j = 0; j < aInChannels - aOutChannels; j++) {
|
||||
aOut[i * aOutChannels + j] = 0;
|
||||
if (aOutChannels > aInChannels) {
|
||||
for (int32_t j = 0; j < aInChannels - aOutChannels; j++) {
|
||||
aOut[i * aOutChannels + j] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче