From 7d3727a0df09056e0ac15b2323bcedb68756783b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Sun, 9 Apr 2023 23:17:36 +0200 Subject: [PATCH] AudioLevel should be a double --- Runtime/Scripts/Room/Participant/Participant.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runtime/Scripts/Room/Participant/Participant.cs b/Runtime/Scripts/Room/Participant/Participant.cs index 3495d22..d337722 100644 --- a/Runtime/Scripts/Room/Participant/Participant.cs +++ b/Runtime/Scripts/Room/Participant/Participant.cs @@ -83,12 +83,12 @@ public JSMap Tracks } } - public int AudioLevel + public double AudioLevel { get { JSNative.PushString("audioLevel"); - return (int) JSNative.GetNumber(JSNative.GetProperty(NativeHandle)); + return JSNative.GetNumber(JSNative.GetProperty(NativeHandle)); } } @@ -371,4 +371,4 @@ public TrackPublication GetTrackByName(string name) return Acquire(ptr); } } -} \ No newline at end of file +}