Skip to contentSkip to conversation

error(no sound) over boundary time [src/pcm/pcm_dshare.c]

DISCUSSION GitHub issues - opened 1 participant 1 message Oct 13, 2020 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-lib issue #84 was opened from syuuha:

there is an issue when we use pcm_dshare over boundary time, eg. will be no sound after 12 hours

[src/pcm/pcm_dshare.c] Line 114:

[before]

	/* calculate the size to transfer */
	size = dshare->appl_ptr - dshare->last_appl_ptr;

[after]

	/* calculate the size to transfer */
	if (dshare->appl_ptr < dshare->last_appl_ptr)
		size = dshare->appl_ptr + (pcm->boundary - dshare->last_appl_ptr);
	else
		size = dshare->appl_ptr - dshare->last_appl_ptr;

Issue URL : https://github.com/alsa-project/alsa-lib/issues/84
Repository URL: https://github.com/alsa-project/alsa-lib