Skip to content

Commit

Permalink
Reduce sleep time #388
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Nov 12, 2022
1 parent e769b70 commit 31f9a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/wyzecam/iotc.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def recv_audio_frames(self, uri: str, fps: int = 20) -> None:
if (buf := tutk.av_check_audio_buf(*tutav)) < 3:
if buf < 0:
raise tutk.TutkError(buf)
time.sleep(2 / fps)
time.sleep(1 / fps)
continue
errno, frame_data, _ = tutk.av_recv_audio_data(*tutav)
if errno < 0:
Expand All @@ -588,7 +588,7 @@ def recv_audio_frames(self, uri: str, fps: int = 20) -> None:
tutk.AV_ER_INCOMPLETE_FRAME,
tutk.AV_ER_LOSED_THIS_FRAME,
):
time.sleep(2 / fps)
time.sleep(1 / fps)
continue
warnings.warn(f"Error: {errno}")
break
Expand Down

0 comments on commit 31f9a97

Please sign in to comment.