#NEWLINE# def process_frames( ) : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# frame = in_frames . get ( False ) #NEWLINE# fft = quietnet . fft ( frame ) #NEWLINE# point = quietnet . has_freq ( fft , search_freq , rate , chunk ) #NEWLINE# points . put ( frame ) #NEWLINE# #UNINDENT# except Queue . Empty : #NEWLINE# #INDENT# time . sleep ( wait_for_frames_timeout )