The script run_latency_test.sh can be used to run the test. The latency utility measures the end to end latency by adding timestamps in the stream at playback time and checking the timestamps when the packets are received on the capture device. The average measured end to end latency is printed at the end of the test. The latency utility is based on a modified version of the original ALSA latency tool.
		
			
				
	
	
		
			12 lines
		
	
	
		
			203 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			203 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| CXX=g++
 | |
| CC=g++
 | |
| LIBS=-lpthread -lasound
 | |
| all: check createtest latency
 | |
| createtest: createtest.o
 | |
| check: check.o
 | |
| latency: latency.o
 | |
| 	$(CXX) $< -o latency  $(LIBS)
 | |
| clean:
 | |
| 	rm *.o
 | |
| 	rm check createtest latency
 |