summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-31 17:23:13 +0100
committerskal <pascal.massimino@gmail.com>2026-01-31 17:23:13 +0100
commit32d26371627638570b74d678ab73deb7b87af8e4 (patch)
tree3097b3678086ddaed7930a02e5c88464f1c7d03e /src/audio
parent7ec28a3f1d417cd5b5adead895a25e42035ef037 (diff)
fix: Cross-compilation and style compliance
Fixes seq_compiler build for Windows cross-compilation. Moves common WebGPU compatibility shims to gpu.h. Applies project-wide coding style via clang-format. Verified on both macOS (native) and Windows (cross-compile).
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/audio.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc
index a1a6f7b..4341712 100644
--- a/src/audio/audio.cc
+++ b/src/audio/audio.cc
@@ -56,7 +56,8 @@ void audio_render_silent(float duration_sec) {
float buffer[chunk_size * 2]; // Stereo
while (total_frames > 0) {
- int frames_to_render = (total_frames > chunk_size) ? chunk_size : total_frames;
+ int frames_to_render =
+ (total_frames > chunk_size) ? chunk_size : total_frames;
synth_render(buffer, frames_to_render);
total_frames -= frames_to_render;
}