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:
Diffstat (limited to 'intern/audaspace/intern/AUD_C-API.cpp')
-rw-r--r--intern/audaspace/intern/AUD_C-API.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp
index 341f1cd3f6b..b326c9f4281 100644
--- a/intern/audaspace/intern/AUD_C-API.cpp
+++ b/intern/audaspace/intern/AUD_C-API.cpp
@@ -75,7 +75,6 @@
#include "AUD_MutexLock.h"
#ifdef WITH_SDL
-#include <SDL.h>
#include "AUD_SDLDevice.h"
#endif
@@ -918,7 +917,7 @@ AUD_Sound *AUD_Sequence_create(float fps, int muted)
// specs are changed at a later point!
AUD_Specs specs;
specs.channels = AUD_CHANNELS_STEREO;
- specs.rate = AUD_RATE_44100;
+ specs.rate = AUD_RATE_48000;
AUD_Sound *sequencer = new AUD_Sound(boost::shared_ptr<AUD_SequencerFactory>(new AUD_SequencerFactory(specs, fps, muted)));
return sequencer;
}
@@ -1292,9 +1291,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);
}