aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-14 02:41:21 -0800
committerChris Robinson <[email protected]>2018-11-14 02:41:21 -0800
commitdfcb6d3e6df973d4d92b37f1d8decd833575d281 (patch)
treec9c4b4e0249f1af4fa9a8e55ef37b1542cc1bc57 /Alc/backends
parentb15dcea4bb0a18b1dd5b426a07f237c3c7ff118d (diff)
More clearly check if the buffer is not empty
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/alsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp
index d40261cb..15308632 100644
--- a/Alc/backends/alsa.cpp
+++ b/Alc/backends/alsa.cpp
@@ -1156,7 +1156,7 @@ static ALCenum ALCcaptureAlsa_captureSamples(ALCcaptureAlsa *self, ALCvoid *buff
{
snd_pcm_sframes_t amt{0};
- if(self->buffer.size() > 0)
+ if(!self->buffer.empty())
{
/* First get any data stored from the last stop */
amt = snd_pcm_bytes_to_frames(self->pcmHandle, self->buffer.size());