From bfb498d1c94a23c07ae7d945c4f9ba12b59a03c6 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Sun, 2 May 2021 23:53:18 +0530 Subject: [PATCH] add sound feedback to recording hole --- fishy/engine/fullautofisher/mode/recorder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fishy/engine/fullautofisher/mode/recorder.py b/fishy/engine/fullautofisher/mode/recorder.py index 3fd4f81..f69fc27 100644 --- a/fishy/engine/fullautofisher/mode/recorder.py +++ b/fishy/engine/fullautofisher/mode/recorder.py @@ -6,6 +6,10 @@ from tkinter.filedialog import asksaveasfile import typing +from playsound import playsound + +from fishy import helper + if typing.TYPE_CHECKING: from fishy.engine.fullautofisher.engine import FullAuto from fishy.engine.fullautofisher.mode.imode import IMode @@ -26,6 +30,7 @@ class Recorder(IMode): def _mark_hole(self): coods = self.engine.get_coods() self.timeline.append(("check_fish", coods)) + playsound(helper.manifest_file("beep.wav"), False) logging.info("check_fish") def run(self):