Fix T46683: High pitch sound artifact on import of 48k audio

The bug header is wrong, the file contains the high pitched sound, but the bug that existed was that animation rendering did not use the high quality resampler, while audio mixdown does.
Blender uses the low quality resampler to be as little CPU consuming as possible.
This commit is contained in:
Joerg Mueller 2015-11-03 19:24:17 +01:00
parent 7f57bc9ef4
commit 8c25c1c484
Notes: blender-bot 2023-02-14 08:27:42 +01:00
Referenced by issue #46683, High pitch sound artifact on import of 48k audio
1 changed files with 4 additions and 2 deletions

View File

@ -1292,9 +1292,11 @@ AUD_Device *AUD_openMixdownDevice(AUD_DeviceSpecs specs, AUD_Sound *sequencer, f
device->setQuality(true);
device->setVolume(volume);
dynamic_cast<AUD_SequencerFactory *>(sequencer->get())->setSpecs(specs.specs);
AUD_SequencerFactory *f = dynamic_cast<AUD_SequencerFactory *>(sequencer->get());
AUD_Handle handle = device->play(*sequencer);
f->setSpecs(specs.specs);
AUD_Handle handle = device->play(f->createQualityReader());
if (handle.get()) {
handle->seek(start);
}