From 295626c3d527613c93fa63e2b1f079704600a98e Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 02:51:21 +0100 Subject: 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. --- src/main.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/main.cc') 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; -- cgit v1.2.3