More clearly check if the buffer is not empty

This commit is contained in:
Chris Robinson
2018-11-14 02:41:21 -08:00
parent b15dcea4bb
commit dfcb6d3e6d
+1 -1
View File
@@ -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());