0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 11:22:00 +01:00

minor changes

This commit is contained in:
2025-06-27 20:05:32 +02:00
parent 9c7018132f
commit 44d54899f0
7 changed files with 5 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
{
"port": 13452,
"time": 1751012772726,
"time": 1751046472527,
"version": "0.0.3"
}

View File

@@ -36,7 +36,8 @@
"algorithm": "c",
"socket.h": "c",
"time.h": "c",
"vban.h": "c"
"vban.h": "c",
"chimer.h": "c"
},
"C_Cpp.errorSquiggles": "disabled"
}

View File

@@ -13,21 +13,15 @@ endif()
file(GLOB SRC_FILES "src/*.c")
# file(GLOB LIB_FILES "lib/*.c")
file(GLOB FILTER_FILES "filter/*.c")
file(GLOB MODULATION_FILES "modulation/*.c")
file(GLOB DSP_FILES "dsp/*.c")
file(GLOB IO_FILES "io/*.c")
# add_library(libfm OBJECT ${LIB_FILES})
add_library(libfmfilter OBJECT ${FILTER_FILES})
add_library(libfmmodulation OBJECT ${MODULATION_FILES})
add_library(libfmdsp OBJECT ${DSP_FILES})
add_library(libfmio OBJECT ${IO_FILES})
# Define DEBUG macro for Debug builds on libraries
@@ -56,6 +50,6 @@ foreach(SRC_FILE ${SRC_FILES})
install(TARGETS ${EXEC_NAME}
DESTINATION /usr/bin
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
GROUP_EXECUTE GROUP_WRITE GROUP_READ
WORLD_EXECUTE WORLD_READ)
endforeach()

View File

@@ -7,7 +7,7 @@ inline float dbr_to_deviation(float dbr) {
}
inline float deviation_to_dbr(float deviation) {
if(deviation == 0.0f) return -100.0f;
if (deviation < 1e-6f) return -100.0f;
return 10.0f * (log2f(deviation) - LOG2_19000) * 0.30103f;
}

View File

@@ -1,13 +0,0 @@
#pragma once
#if defined(__ARM_NEON) || defined(__ARM_NEON__)
#ifdef DEBUG
#pragma message("Using ARM NEON optimizations")
#endif
#include <arm_neon.h>
#define USE_NEON 1
#else
#ifdef DEBUG
#pragma message("ARM NEON optimizations not available")
#endif
#define USE_NEON 0
#endif

View File

@@ -9,7 +9,6 @@
#define buffer_prebuf 0
#include "../dsp/oscillator.h"
#include "../lib/optimization.h"
#define DEFAULT_FREQ 1000.0f
#define DEFAULT_SAMPLE_RATE 4000

View File

@@ -20,7 +20,6 @@
#include "../filter/iir.h"
#include "../modulation/fm_modulator.h"
#include "../modulation/stereo_encoder.h"
#include "../lib/optimization.h"
#include "../filter/bs412.h"
#include "../filter/gain_control.h"