Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Müller <nexyon@gmail.com>2015-11-03 21:24:17 +0300
committerJörg Müller <nexyon@gmail.com>2015-11-03 21:34:33 +0300
commit8c25c1c484aef9cde709143085a8e5b9a003b866 (patch)
tree957a925d89dd694d8a714bd4d3c771ace0740bb3 /intern/audaspace
parent7f57bc9ef4cc1e136d03e8167f413238c8c7cdca (diff)
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.
Diffstat (limited to 'intern/audaspace')
-rw-r--r--intern/audaspace/intern/AUD_C-API.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp
index 341f1cd3f6b..6d8d2d1f41e 100644
--- a/intern/audaspace/intern/AUD_C-API.cpp
+++ b/intern/audaspace/intern/AUD_C-API.cpp
@@ -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);
}