13
0

Cont'd work on ALSA nperiods (amend 2326fb163)

This commit is contained in:
Robin Gareus 2020-05-03 00:19:56 +02:00
parent 11ec81f4c2
commit 27f26f5cfd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -101,7 +101,7 @@ int Alsa_pcmi::pcm_start (void)
if (_play_handle) if (_play_handle)
{ {
n = snd_pcm_avail_update (_play_handle); n = snd_pcm_avail_update (_play_handle);
if (n != _fsize * _play_nfrag) if (n < _fsize * _play_nfrag)
{ {
if (_debug & DEBUG_STAT) fprintf (stderr, "Alsa_pcmi: full buffer not available at start.\n"); if (_debug & DEBUG_STAT) fprintf (stderr, "Alsa_pcmi: full buffer not available at start.\n");
return -1; return -1;