mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-22 00:33:44 +08:00
soundd: lower max volume breakpoint (#26673)
* revert tune * remove hanning window * retune from hanning window * add hanning back * update once reached 4096 * Revert "update once reached 4096" This reverts commit 0898cbeec736916ffaee5e963df048b48636ece5. old-commit-hash: de061eacbe772b1a9be73d4a3864fad6e05037ac
This commit is contained in:
+1
-2
@@ -26,8 +26,7 @@ def calculate_spl(measurements):
|
||||
|
||||
def apply_a_weighting(measurements: np.ndarray) -> np.ndarray:
|
||||
# Generate a Hanning window of the same length as the audio measurements
|
||||
hanning_window = np.hanning(len(measurements))
|
||||
measurements_windowed = measurements * hanning_window
|
||||
measurements_windowed = measurements * np.hanning(len(measurements))
|
||||
|
||||
# Calculate the frequency axis for the signal
|
||||
freqs = np.fft.fftfreq(measurements_windowed.size, d=1 / SAMPLE_RATE)
|
||||
|
||||
Reference in New Issue
Block a user