aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/winmm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/winmm.cpp')
-rw-r--r--Alc/backends/winmm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/backends/winmm.cpp b/Alc/backends/winmm.cpp
index 0d353906..ff5d026c 100644
--- a/Alc/backends/winmm.cpp
+++ b/Alc/backends/winmm.cpp
@@ -363,7 +363,8 @@ ALCboolean ALCwinmmPlayback_start(ALCwinmmPlayback *self)
[self](WAVEHDR &waveHdr) -> void
{ waveOutPrepareHeader(self->OutHdl, &waveHdr, static_cast<UINT>(sizeof(WAVEHDR))); }
);
- self->Writable.store(self->WaveBuffer.size(), std::memory_order_release);
+ self->Writable.store(static_cast<ALuint>(self->WaveBuffer.size()),
+ std::memory_order_release);
self->mKillNow.store(AL_FALSE, std::memory_order_release);
self->mThread = std::thread(ALCwinmmPlayback_mixerProc, self);