mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	change pa_rtpoll_set_timer_absolute() to take a pa_usec_t instead of struct timeval
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2324 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									5816871117
								
							
						
					
					
						commit
						d7cc1f5a12
					
				
					 2 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -502,11 +502,10 @@ static void update_timer(pa_rtpoll *p) {
 | 
			
		|||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, const struct timeval *ts) {
 | 
			
		||||
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec) {
 | 
			
		||||
    pa_assert(p);
 | 
			
		||||
    pa_assert(ts);
 | 
			
		||||
 | 
			
		||||
    p->next_elapse = *ts;
 | 
			
		||||
    pa_timeval_store(&p->next_elapse, usec);
 | 
			
		||||
    p->timer_enabled = TRUE;
 | 
			
		||||
 | 
			
		||||
    update_timer(p);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -74,7 +74,7 @@ void pa_rtpoll_install(pa_rtpoll *p);
 | 
			
		|||
 * cleanly. */
 | 
			
		||||
int pa_rtpoll_run(pa_rtpoll *f, pa_bool_t wait);
 | 
			
		||||
 | 
			
		||||
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, const struct timeval *ts);
 | 
			
		||||
void pa_rtpoll_set_timer_absolute(pa_rtpoll *p, pa_usec_t usec);
 | 
			
		||||
void pa_rtpoll_set_timer_relative(pa_rtpoll *p, pa_usec_t usec);
 | 
			
		||||
void pa_rtpoll_set_timer_disabled(pa_rtpoll *p);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue