Test the latency of a pygame.mixer command
Posted: Sat Apr 29, 2017 6:04 pm
Hi, I'm trying to see how long it takes the pi from initiating to actually playing a sound. The best way I can think of how to do this is to run the audio back in through a mic on a usb soundcard, using some type of volume recognition code to detect when the sound starts and using time.time to tell the difference. Is this possible? Would the usb soundcard have it's own latency that would cause problems?
Thanks for any help.
Code: Select all
pygame.mixer.music.play()Thanks for any help.