mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Added sync_ptr callback
This commit is contained in:
		
							parent
							
								
									c508b496b4
								
							
						
					
					
						commit
						819a85fb2c
					
				
					 5 changed files with 7 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue