diff options
Diffstat (limited to 'intern')
-rw-r--r-- | intern/audaspace/intern/AUD_C-API.cpp | 6 |
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); } |