mccoy
Posts: 15
Joined: Tue Mar 07, 2017 11:41 pm

Test the latency of a pygame.mixer command

Sat Apr 29, 2017 6:04 pm

Hi, I'm trying to see how long it takes the pi from initiating

Code: Select all

pygame.mixer.music.play()
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.

Return to “Beginners”