diff options
author | Chris Robinson <[email protected]> | 2018-01-16 09:40:34 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-01-16 09:40:34 -0800 |
commit | 8c19497340951aceb88d4f91038cafece6f00d7c (patch) | |
tree | cf9ea8396bcdf0bb90c2b9538d0d16fc0ffcb337 /Alc | |
parent | 5deb1df8dbc4c9484cdd424aa2f9a1e964937834 (diff) |
Properly cast some parameters for MSVC
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/backends/mmdevapi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 670d1561..55d8ec54 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -1374,7 +1374,7 @@ FORCE_ALIGN int ALCmmdevCapture_recordProc(void *arg) ALsizei srcframes = numsamples; dstframes = SampleConverterInput(self->SampleConv, - &srcdata, &srcframes, data[0].buf, data[0].len + &srcdata, &srcframes, data[0].buf, (ALsizei)minz(data[0].len, INT_MAX) ); if(srcframes > 0 && dstframes == data[0].len && data[1].len > 0) { @@ -1383,16 +1383,16 @@ FORCE_ALIGN int ALCmmdevCapture_recordProc(void *arg) * dest block, do another run for the second block. */ dstframes += SampleConverterInput(self->SampleConv, - &srcdata, &srcframes, data[1].buf, data[1].len + &srcdata, &srcframes, data[1].buf, (ALsizei)minz(data[1].len, INT_MAX) ); } } else { - size_t framesize = FrameSizeFromDevFmt(device->FmtChans, device->FmtType, + ALuint framesize = FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->AmbiOrder); - ALuint len1 = minu(data[0].len, numsamples); - ALuint len2 = minu(data[1].len, numsamples-len1); + size_t len1 = minz(data[0].len, numsamples); + size_t len2 = minz(data[1].len, numsamples-len1); memcpy(data[0].buf, rdata, len1*framesize); if(len2 > 0) |