aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/winmm.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-01-10 07:56:43 -0800
committerChris Robinson <[email protected]>2020-01-10 07:56:43 -0800
commite6e2f509f871061ec917951fb77021856a9a0263 (patch)
tree5423d2f46e0fee6021879e17e91569f12ac3d44d /alc/backends/winmm.cpp
parentb31886ad73937be071409388cb0b8515754a09f1 (diff)
Make CreateRingBuffer a static RingBuffer method
Diffstat (limited to 'alc/backends/winmm.cpp')
-rw-r--r--alc/backends/winmm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/backends/winmm.cpp b/alc/backends/winmm.cpp
index 82625e1f..53a58d0e 100644
--- a/alc/backends/winmm.cpp
+++ b/alc/backends/winmm.cpp
@@ -520,11 +520,11 @@ void WinMMCapture::open(const ALCchar *name)
ALuint CapturedDataSize{mDevice->BufferSize};
CapturedDataSize = static_cast<ALuint>(maxz(CapturedDataSize, BufferSize*mWaveBuffer.size()));
- mRing = CreateRingBuffer(CapturedDataSize, mFormat.nBlockAlign, false);
+ mRing = RingBuffer::Create(CapturedDataSize, mFormat.nBlockAlign, false);
al_free(mWaveBuffer[0].lpData);
mWaveBuffer[0] = WAVEHDR{};
- mWaveBuffer[0].lpData = static_cast<char*>(al_calloc(16, BufferSize*4));
+ mWaveBuffer[0].lpData = static_cast<char*>(al_calloc(16, BufferSize * mWaveBuffer.size()));
mWaveBuffer[0].dwBufferLength = BufferSize;
for(size_t i{1};i < mWaveBuffer.size();++i)
{