diff options
Diffstat (limited to 'Alc/backends/alsa.cpp')
-rw-r--r-- | Alc/backends/alsa.cpp | 2 |
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()); |