diff options
Diffstat (limited to 'Alc/backends/sdl2.cpp')
-rw-r--r-- | Alc/backends/sdl2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/sdl2.cpp b/Alc/backends/sdl2.cpp index a1011735..51c927cc 100644 --- a/Alc/backends/sdl2.cpp +++ b/Alc/backends/sdl2.cpp @@ -146,7 +146,7 @@ ALCenum Sdl2Backend::open(const ALCchar *name) return ALC_INVALID_VALUE; } mDevice->UpdateSize = have.samples; - mDevice->NumUpdates = 2; /* SDL always (tries to) use two periods. */ + mDevice->BufferSize = have.samples * 2; /* SDL always (tries to) use two periods. */ mFrameSize = mDevice->frameSizeFromFmt(); mFrequency = mDevice->Frequency; @@ -164,7 +164,7 @@ ALCboolean Sdl2Backend::reset() mDevice->FmtChans = mFmtChans; mDevice->FmtType = mFmtType; mDevice->UpdateSize = mUpdateSize; - mDevice->NumUpdates = 2; + mDevice->BufferSize = mUpdateSize * 2; SetDefaultWFXChannelOrder(mDevice); return ALC_TRUE; } |