fix bad commit I just made

This commit is contained in:
Yonokid
2025-05-02 00:22:05 -04:00
parent 2fda744f9b
commit 08394cf97a
2 changed files with 13 additions and 8 deletions

View File

@@ -7,7 +7,9 @@ from threading import Lock, Thread
import pyray as ray
from numpy import (
abs,
abs as np_abs,
)
from numpy import (
column_stack,
float32,
frombuffer,
@@ -17,6 +19,9 @@ from numpy import (
uint8,
zeros,
)
from numpy import (
max as np_max,
)
os.environ["SD_ENABLE_ASIO"] = "1"
import sounddevice as sd
@@ -550,7 +555,7 @@ class ASIOEngine:
output *= self.master_volume
# Apply simple limiter to prevent clipping
max_val = max(abs(output))
max_val = np_max(np_abs(output))
if max_val > 1.0:
output = output / max_val