summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-28 02:51:21 +0100
committerskal <pascal.massimino@gmail.com>2026-01-28 02:51:21 +0100
commit295626c3d527613c93fa63e2b1f079704600a98e (patch)
tree978da6b066bb1ff69df4abb02887bc940e88afe1 /src/main.cc
parent96bfc344ce9098681ff739cd7ed0a1d1f8ba54df (diff)
build: Finalize WebGPU integration and platform fixes
Includes correct CMake configuration for GLFW native access, Objective-C++ compilation for the helper library on macOS, and applies clang-format to modified sources.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cc b/src/main.cc
index e46468f..31e1c58 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -49,7 +49,7 @@ int main(int argc, char **argv) {
audio_init();
generate_tone(g_spec_buffer_a, 440.0f); // A4
- generate_tone(g_spec_buffer_b, 0.0f); // A5
+ generate_tone(g_spec_buffer_b, 0.0f); // A5
const Spectrogram spec = {g_spec_buffer_a, g_spec_buffer_b, SPEC_FRAMES};
int tone_id = synth_register_spectrogram(&spec);
@@ -71,10 +71,11 @@ int main(int argc, char **argv) {
// Time to update the sound!
float *back_buffer = synth_begin_update(tone_id);
if (back_buffer) {
- generate_tone(back_buffer, (beat_count % 8) == 4 ? 220.0f : 480.f); // A3
+ generate_tone(back_buffer,
+ (beat_count % 8) == 4 ? 220.0f : 480.f); // A3
synth_commit_update(tone_id);
}
- }
+ }
}
int width, height;