Added sync_ptr callback

This commit is contained in:
Jaroslav Kysela 2004-01-23 13:04:43 +00:00
parent c508b496b4
commit 819a85fb2c
5 changed files with 7 additions and 8 deletions

View file

@ -418,6 +418,7 @@ int snd_pcm_direct_poll_revents(snd_pcm_t *pcm, struct pollfd *pfds, unsigned in
events = pfds[0].revents;
if (events & POLLIN) {
int empty = 0;
dmix->sync_ptr(pcm);
if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
events |= POLLOUT;
events &= ~POLLIN;