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:
2
.vscode/.server-controller-port.log
vendored
2
.vscode/.server-controller-port.log
vendored
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"port": 13452,
|
"port": 13452,
|
||||||
"time": 1751012772726,
|
"time": 1751046472527,
|
||||||
"version": "0.0.3"
|
"version": "0.0.3"
|
||||||
}
|
}
|
||||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@@ -36,7 +36,8 @@
|
|||||||
"algorithm": "c",
|
"algorithm": "c",
|
||||||
"socket.h": "c",
|
"socket.h": "c",
|
||||||
"time.h": "c",
|
"time.h": "c",
|
||||||
"vban.h": "c"
|
"vban.h": "c",
|
||||||
|
"chimer.h": "c"
|
||||||
},
|
},
|
||||||
"C_Cpp.errorSquiggles": "disabled"
|
"C_Cpp.errorSquiggles": "disabled"
|
||||||
}
|
}
|
||||||
@@ -13,21 +13,15 @@ endif()
|
|||||||
file(GLOB SRC_FILES "src/*.c")
|
file(GLOB SRC_FILES "src/*.c")
|
||||||
|
|
||||||
# file(GLOB LIB_FILES "lib/*.c")
|
# file(GLOB LIB_FILES "lib/*.c")
|
||||||
|
|
||||||
file(GLOB FILTER_FILES "filter/*.c")
|
file(GLOB FILTER_FILES "filter/*.c")
|
||||||
file(GLOB MODULATION_FILES "modulation/*.c")
|
file(GLOB MODULATION_FILES "modulation/*.c")
|
||||||
|
|
||||||
file(GLOB DSP_FILES "dsp/*.c")
|
file(GLOB DSP_FILES "dsp/*.c")
|
||||||
|
|
||||||
file(GLOB IO_FILES "io/*.c")
|
file(GLOB IO_FILES "io/*.c")
|
||||||
|
|
||||||
# add_library(libfm OBJECT ${LIB_FILES})
|
# add_library(libfm OBJECT ${LIB_FILES})
|
||||||
|
|
||||||
add_library(libfmfilter OBJECT ${FILTER_FILES})
|
add_library(libfmfilter OBJECT ${FILTER_FILES})
|
||||||
add_library(libfmmodulation OBJECT ${MODULATION_FILES})
|
add_library(libfmmodulation OBJECT ${MODULATION_FILES})
|
||||||
|
|
||||||
add_library(libfmdsp OBJECT ${DSP_FILES})
|
add_library(libfmdsp OBJECT ${DSP_FILES})
|
||||||
|
|
||||||
add_library(libfmio OBJECT ${IO_FILES})
|
add_library(libfmio OBJECT ${IO_FILES})
|
||||||
|
|
||||||
# Define DEBUG macro for Debug builds on libraries
|
# Define DEBUG macro for Debug builds on libraries
|
||||||
@@ -56,6 +50,6 @@ foreach(SRC_FILE ${SRC_FILES})
|
|||||||
install(TARGETS ${EXEC_NAME}
|
install(TARGETS ${EXEC_NAME}
|
||||||
DESTINATION /usr/bin
|
DESTINATION /usr/bin
|
||||||
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
||||||
GROUP_EXECUTE GROUP_READ
|
GROUP_EXECUTE GROUP_WRITE GROUP_READ
|
||||||
WORLD_EXECUTE WORLD_READ)
|
WORLD_EXECUTE WORLD_READ)
|
||||||
endforeach()
|
endforeach()
|
||||||
@@ -7,7 +7,7 @@ inline float dbr_to_deviation(float dbr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline float deviation_to_dbr(float deviation) {
|
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;
|
return 10.0f * (log2f(deviation) - LOG2_19000) * 0.30103f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -9,7 +9,6 @@
|
|||||||
#define buffer_prebuf 0
|
#define buffer_prebuf 0
|
||||||
|
|
||||||
#include "../dsp/oscillator.h"
|
#include "../dsp/oscillator.h"
|
||||||
#include "../lib/optimization.h"
|
|
||||||
|
|
||||||
#define DEFAULT_FREQ 1000.0f
|
#define DEFAULT_FREQ 1000.0f
|
||||||
#define DEFAULT_SAMPLE_RATE 4000
|
#define DEFAULT_SAMPLE_RATE 4000
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
#include "../filter/iir.h"
|
#include "../filter/iir.h"
|
||||||
#include "../modulation/fm_modulator.h"
|
#include "../modulation/fm_modulator.h"
|
||||||
#include "../modulation/stereo_encoder.h"
|
#include "../modulation/stereo_encoder.h"
|
||||||
#include "../lib/optimization.h"
|
|
||||||
#include "../filter/bs412.h"
|
#include "../filter/bs412.h"
|
||||||
#include "../filter/gain_control.h"
|
#include "../filter/gain_control.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user