summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-31 01:01:56 +0100
committerskal <pascal.massimino@gmail.com>2026-01-31 01:01:56 +0100
commit3af9f70bec1f50c980288e2213035693f4b737ce (patch)
treee84d96c870026ff77c2c0c3537218fbfe64e26cb /src
parent2520ae66ce2da210eaeaeba44c467c97e0c3fdd0 (diff)
Chore: Add missing newlines at end of source files
Diffstat (limited to 'src')
-rw-r--r--src/audio/audio.cc2
-rw-r--r--src/audio/audio.h2
-rw-r--r--src/audio/fdct.cc2
-rw-r--r--src/audio/gen.cc2
-rw-r--r--src/audio/idct.cc2
-rw-r--r--src/audio/synth.cc2
-rw-r--r--src/audio/synth.h2
-rw-r--r--src/audio/window.cc2
-rw-r--r--src/audio/window.h2
-rw-r--r--src/gpu/gpu.cc2
-rw-r--r--src/platform.cc2
-rw-r--r--src/platform.h2
-rw-r--r--src/tests/test_assets.cc2
-rw-r--r--src/tests/test_synth.cc2
-rw-r--r--src/tests/test_window.cc2
-rw-r--r--src/util/math.h2
16 files changed, 16 insertions, 16 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc
index abdd2aa..7f8511b 100644
--- a/src/audio/audio.cc
+++ b/src/audio/audio.cc
@@ -46,4 +46,4 @@ void audio_shutdown() {
ma_device_stop(&g_device);
ma_device_uninit(&g_device);
synth_shutdown();
-} \ No newline at end of file
+}
diff --git a/src/audio/audio.h b/src/audio/audio.h
index d34ff5e..dd43d97 100644
--- a/src/audio/audio.h
+++ b/src/audio/audio.h
@@ -6,4 +6,4 @@
void audio_init();
void audio_update();
-void audio_shutdown(); \ No newline at end of file
+void audio_shutdown();
diff --git a/src/audio/fdct.cc b/src/audio/fdct.cc
index 620fc37..3541e9c 100644
--- a/src/audio/fdct.cc
+++ b/src/audio/fdct.cc
@@ -15,4 +15,4 @@ void fdct_512(const float *input, float *output) {
}
output[k] = sum;
}
-} \ No newline at end of file
+}
diff --git a/src/audio/gen.cc b/src/audio/gen.cc
index 8d594f2..1a94b22 100644
--- a/src/audio/gen.cc
+++ b/src/audio/gen.cc
@@ -135,4 +135,4 @@ void apply_spectral_comb(std::vector<float> &data, int num_frames,
data[f * DCT_SIZE + i] *= mod;
}
}
-} \ No newline at end of file
+}
diff --git a/src/audio/idct.cc b/src/audio/idct.cc
index 3ab4611..6235950 100644
--- a/src/audio/idct.cc
+++ b/src/audio/idct.cc
@@ -15,4 +15,4 @@ void idct_512(const float *input, float *output) {
}
output[n] = sum * (2.0f / (float)DCT_SIZE);
}
-} \ No newline at end of file
+}
diff --git a/src/audio/synth.cc b/src/audio/synth.cc
index 02d7133..523d3d7 100644
--- a/src/audio/synth.cc
+++ b/src/audio/synth.cc
@@ -202,4 +202,4 @@ int synth_get_active_voice_count() {
float synth_get_output_peak() {
return g_current_output_peak;
-} \ No newline at end of file
+}
diff --git a/src/audio/synth.h b/src/audio/synth.h
index 9000891..45a9410 100644
--- a/src/audio/synth.h
+++ b/src/audio/synth.h
@@ -31,4 +31,4 @@ void synth_trigger_voice(int spectrogram_id, float volume, float pan);
void synth_render(float *output_buffer, int num_frames);
int synth_get_active_voice_count();
-float synth_get_output_peak(); \ No newline at end of file
+float synth_get_output_peak();
diff --git a/src/audio/window.cc b/src/audio/window.cc
index 6edde0c..e5dfdec 100644
--- a/src/audio/window.cc
+++ b/src/audio/window.cc
@@ -11,4 +11,4 @@ void hamming_window_512(float *window) {
window[i] =
0.54f - 0.46f * cosf(2.0f * PI * (float)i / (float)(WINDOW_SIZE - 1));
}
-} \ No newline at end of file
+}
diff --git a/src/audio/window.h b/src/audio/window.h
index 6196164..99ac209 100644
--- a/src/audio/window.h
+++ b/src/audio/window.h
@@ -6,4 +6,4 @@
#define WINDOW_SIZE 512
-void hamming_window_512(float *window); \ No newline at end of file
+void hamming_window_512(float *window);
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc
index 27c0772..92c661b 100644
--- a/src/gpu/gpu.cc
+++ b/src/gpu/gpu.cc
@@ -616,4 +616,4 @@ void gpu_draw(float audio_peak, float aspect_ratio, float time) {
}
void gpu_shutdown() {
-} \ No newline at end of file
+}
diff --git a/src/platform.cc b/src/platform.cc
index 235f4a5..f0ef553 100644
--- a/src/platform.cc
+++ b/src/platform.cc
@@ -80,4 +80,4 @@ double platform_get_time() {
WGPUSurface platform_create_wgpu_surface(WGPUInstance instance) {
return glfwCreateWindowWGPUSurface(instance, window);
-} \ No newline at end of file
+}
diff --git a/src/platform.h b/src/platform.h
index fa6944a..31505ab 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -18,4 +18,4 @@ void platform_toggle_fullscreen();
GLFWwindow *platform_get_window();
double platform_get_time();
-WGPUSurface platform_create_wgpu_surface(WGPUInstance instance); \ No newline at end of file
+WGPUSurface platform_create_wgpu_surface(WGPUInstance instance);
diff --git a/src/tests/test_assets.cc b/src/tests/test_assets.cc
index 5e0725e..e782453 100644
--- a/src/tests/test_assets.cc
+++ b/src/tests/test_assets.cc
@@ -35,4 +35,4 @@ int main() {
printf("AssetManager test PASSED\n");
return 0;
-} \ No newline at end of file
+}
diff --git a/src/tests/test_synth.cc b/src/tests/test_synth.cc
index eb685b4..2594660 100644
--- a/src/tests/test_synth.cc
+++ b/src/tests/test_synth.cc
@@ -32,4 +32,4 @@ int main() {
test_trigger();
printf("SynthEngine tests PASSED\n");
return 0;
-} \ No newline at end of file
+}
diff --git a/src/tests/test_window.cc b/src/tests/test_window.cc
index 1d2d76f..bac4a4b 100644
--- a/src/tests/test_window.cc
+++ b/src/tests/test_window.cc
@@ -25,4 +25,4 @@ int main() {
printf("HammingWindow tests PASSED\n");
return 0;
-} \ No newline at end of file
+}
diff --git a/src/util/math.h b/src/util/math.h
index 5ef822e..8aa2c7a 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -6,4 +6,4 @@
#ifndef M_PI
#define M_PI 3.14159265358979323846
-#endif \ No newline at end of file
+#endif