mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-10-29 05:40:25 -04:00 
			
		
		
		
	test: latency - usleep should not be used in the block mode
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									f0f054517c
								
							
						
					
					
						commit
						536c93928b
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -678,7 +678,7 @@ int main(int argc, char *argv[]) | |||
| 			loop_limit, latency_min * 2, latency_max * 2); | ||||
| 	if (sys_latency > 0) | ||||
| 		printf(", I/O updates %ims", sys_latency); | ||||
| 	else if (!block) | ||||
| 	else if (!block && !use_poll) | ||||
| 		printf(", I/O usleep %ius", usleep_val); | ||||
| 	printf("\n"); | ||||
| 
 | ||||
|  | @ -764,7 +764,7 @@ int main(int argc, char *argv[]) | |||
| 			} else if (use_poll) { | ||||
| 				/* use poll to wait for next event */ | ||||
| 				snd_pcm_wait(chandle, 1000); | ||||
| 			} else if (usleep_val > 0) { | ||||
| 			} else if (!block && usleep_val > 0) { | ||||
| 				usleep(usleep_val); | ||||
| 			} | ||||
| 			if (pos_dump || realtime_check) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jaroslav Kysela
						Jaroslav Kysela