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

GitHub issues - opened github at alsa-project.org
Tue Oct 13 12:06:48 CEST 2020


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


More information about the Alsa-devel mailing list