diff options
Diffstat (limited to 'extern/audaspace/bindings/C/AUD_Special.cpp')
-rw-r--r-- | extern/audaspace/bindings/C/AUD_Special.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extern/audaspace/bindings/C/AUD_Special.cpp b/extern/audaspace/bindings/C/AUD_Special.cpp index f8f46651231..30148fa1487 100644 --- a/extern/audaspace/bindings/C/AUD_Special.cpp +++ b/extern/audaspace/bindings/C/AUD_Special.cpp @@ -177,11 +177,11 @@ static void pauseSound(AUD_Handle* handle) AUD_API AUD_Handle* AUD_pauseAfter(AUD_Handle* handle, float seconds) { - std::shared_ptr<ISound> silence = std::shared_ptr<ISound>(new Silence); - std::shared_ptr<ISound> limiter = std::shared_ptr<ISound>(new Limiter(silence, 0, seconds)); - auto device = DeviceManager::getDevice(); + std::shared_ptr<ISound> silence = std::shared_ptr<ISound>(new Silence(device->getSpecs().rate)); + std::shared_ptr<ISound> limiter = std::shared_ptr<ISound>(new Limiter(silence, 0, seconds)); + std::lock_guard<ILockable> lock(*device); try |