mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixing #305
This commit is contained in:
parent
f979fb3d7b
commit
c143c87d64
1 changed files with 1 additions and 1 deletions
|
@ -941,7 +941,7 @@ class RF:
|
||||||
# calculate dbfs every 50 cycles for reducing CPU load
|
# calculate dbfs every 50 cycles for reducing CPU load
|
||||||
rms_counter += 1
|
rms_counter += 1
|
||||||
if rms_counter > 50:
|
if rms_counter > 50:
|
||||||
d = np.frombuffer(self.fft_data, np.int16).astype(np.float)
|
d = np.frombuffer(self.fft_data, np.int16).astype(np.float32)
|
||||||
# calculate RMS and then dBFS
|
# calculate RMS and then dBFS
|
||||||
# TODO: Need to change static.AUDIO_RMS to AUDIO_DBFS somewhen
|
# TODO: Need to change static.AUDIO_RMS to AUDIO_DBFS somewhen
|
||||||
# https://dsp.stackexchange.com/questions/8785/how-to-compute-dbfs
|
# https://dsp.stackexchange.com/questions/8785/how-to-compute-dbfs
|
||||||
|
|
Loading…
Reference in a new issue