mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 23:53:48 +02:00
fix reference to downloaded byte array samples
This commit is contained in:
parent
a06f18328c
commit
32be6199fd
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ void Sound::replyFinished(QNetworkReply* reply) {
|
|||
|
||||
for (int i = 1; i < numSourceSamples; i += 2) {
|
||||
if (i + 1 >= numSourceSamples) {
|
||||
destinationSamples[(i - 1) / 2] = (rawAudioByteArray[i - 1] / 2) + (rawAudioByteArray[i] / 2);
|
||||
destinationSamples[(i - 1) / 2] = (sourceSamples[i - 1] / 2) + (sourceSamples[i] / 2);
|
||||
} else {
|
||||
destinationSamples[(i - 1) / 2] = (sourceSamples[i - 1] / 4) + (sourceSamples[i] / 2) + (sourceSamples[i + 1] / 4);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue