[Bf-blender-cvs] [8c25c1c] master: Fix T46683: High pitch sound artifact on import of 48k audio

Jörg Müller noreply at git.blender.org
Tue Nov 3 19:34:40 CET 2015

Commit: 8c25c1c484aef9cde709143085a8e5b9a003b866
Author: Jörg Müller
Date:   Tue Nov 3 19:24:17 2015 +0100
Branches: master

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.


M	intern/audaspace/intern/AUD_C-API.cpp


diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp
index 341f1cd..6d8d2d1 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
-		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()) {

More information about the Bf-blender-cvs mailing list