mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Stop timer at XRUN
Stop PCM timer at XRUN.
This commit is contained in:
parent
586c8872a9
commit
a0a440dcf4
1 changed files with 1 additions and 0 deletions
|
|
@ -280,6 +280,7 @@ static int _snd_pcm_dmix_sync_ptr(snd_pcm_t *pcm, int do_slave_sync)
|
||||||
return 0;
|
return 0;
|
||||||
if ((avail = snd_pcm_mmap_playback_avail(pcm)) >= pcm->stop_threshold) {
|
if ((avail = snd_pcm_mmap_playback_avail(pcm)) >= pcm->stop_threshold) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
snd_timer_stop(dmix->timer);
|
||||||
gettimeofday(&tv, 0);
|
gettimeofday(&tv, 0);
|
||||||
dmix->trigger_tstamp.tv_sec = tv.tv_sec;
|
dmix->trigger_tstamp.tv_sec = tv.tv_sec;
|
||||||
dmix->trigger_tstamp.tv_nsec = tv.tv_usec * 1000L;
|
dmix->trigger_tstamp.tv_nsec = tv.tv_usec * 1000L;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue