From fd3ee1b2031a3ee710875fa782fea2fbc65e5c0f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Mon, 21 Nov 2022 15:54:41 +0000
Subject: [PATCH] feat: support for frequency specs

---
 frontends/web/ts/gb.ts | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/frontends/web/ts/gb.ts b/frontends/web/ts/gb.ts
index 8cb10bb2..7872b635 100644
--- a/frontends/web/ts/gb.ts
+++ b/frontends/web/ts/gb.ts
@@ -4,6 +4,8 @@ import {
     EmulatorBase,
     Entry,
     Feature,
+    Frequency,
+    FrequencySpecs,
     HelpPanel,
     PixelFormat,
     RomInfo,
@@ -463,8 +465,12 @@ export class GameboyEmulator extends EmulatorBase implements Emulator {
         this.trigger("frequency", value);
     }
 
-    get frequencyDelta(): number | null {
-        return 400000;
+    get frequencySpecs(): FrequencySpecs {
+        return {
+            unit: Frequency.MHz,
+            delta: 400000,
+            places: 2
+        };
     }
 
     get framerate(): number {
-- 
GitLab