aboutsummaryrefslogtreecommitdiffstats
path: root/alc/backends/opensl.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-14 16:55:28 -0700
committerChris Robinson <[email protected]>2019-09-14 18:35:23 -0700
commit2c348cecb68bd3a71d388547d6b3330f9cebbfad (patch)
tree445e6387a7356da79c93db166ca8da057a0a0cfc /alc/backends/opensl.cpp
parent1c45b1791b784fb9b70e8c6ce8a1ea158e9004ff (diff)
Fix some more implicit conversions noted by GCC
Diffstat (limited to 'alc/backends/opensl.cpp')
-rw-r--r--alc/backends/opensl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/backends/opensl.cpp b/alc/backends/opensl.cpp
index 3ec2177f..06d5cd40 100644
--- a/alc/backends/opensl.cpp
+++ b/alc/backends/opensl.cpp
@@ -170,7 +170,7 @@ struct OpenSLPlayback final : public BackendBase {
RingBufferPtr mRing{nullptr};
al::semaphore mSem;
- ALsizei mFrameSize{0};
+ ALuint mFrameSize{0};
std::atomic<bool> mKillNow{true};
std::thread mThread;
@@ -630,7 +630,7 @@ struct OpenSLCapture final : public BackendBase {
RingBufferPtr mRing{nullptr};
ALCuint mSplOffset{0u};
- ALsizei mFrameSize{0};
+ ALuint mFrameSize{0};
DEF_NEWDEL(OpenSLCapture)
};
@@ -851,7 +851,7 @@ void OpenSLCapture::stop()
ALCenum OpenSLCapture::captureSamples(void *buffer, ALCuint samples)
{
- ALsizei chunk_size = mDevice->UpdateSize * mFrameSize;
+ ALuint chunk_size{mDevice->UpdateSize * mFrameSize};
SLAndroidSimpleBufferQueueItf bufferQueue;
SLresult result;
ALCuint i;