From 3da487cd19e1836e930af73b4822a2021871de01 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Sun, 25 Oct 2026 23:11:00 -0500 Subject: [PATCH] Mark NumPy sinc as an intentional API name --- openpilot/starpilot/audio/sound_pack.py | 2 +- prebuilt.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpilot/starpilot/audio/sound_pack.py b/openpilot/starpilot/audio/sound_pack.py index 9c3c54c477..a4626f4498 100644 --- a/openpilot/starpilot/audio/sound_pack.py +++ b/openpilot/starpilot/audio/sound_pack.py @@ -267,7 +267,7 @@ def tici_speaker_samples(samples: np.ndarray) -> np.ndarray: def tici_disengage_samples(samples: np.ndarray) -> np.ndarray: """Lighten the existing disengage chime at load time, preserving its timing.""" taps = np.arange(2049, dtype=np.float64) - 1024 - lowpass = 2 * 700 / 48000 * np.sinc(2 * 700 / 48000 * taps) * np.hamming(len(taps)) + lowpass = 2 * 700 / 48000 * np.sinc(2 * 700 / 48000 * taps) * np.hamming(len(taps)) # codespell:ignore sinc lowpass /= lowpass.sum() bass = np.convolve(samples, lowpass, mode="full")[1024:1024 + len(samples)] result = samples.astype(np.float64) - 0.65 * bass diff --git a/prebuilt.json b/prebuilt.json index f5d0a93af1..1bd3749a98 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "09fdf36a9ad3246d38d3ae0cebdc21015478148b152a867452236248c7f8edac", "schema_version": 1} +{"protected_inventory_sha256": "adf59bd7b9cd343277a08a6a395b373350fbb4461fcb7bc0e556b855dbdacf28", "schema_version": 1}