From 18eb8a07ba39a8aad1c75521cee027b9c9c72e40 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 1 Feb 2026 00:58:20 +0100 Subject: clang-format --- src/audio/audio.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/audio/audio.cc') diff --git a/src/audio/audio.cc b/src/audio/audio.cc index b482e64..e4abbf8 100644 --- a/src/audio/audio.cc +++ b/src/audio/audio.cc @@ -4,12 +4,12 @@ #include "audio.h" -#ifndef DEMO_BUILD_TOOLS +#if !defined(DEMO_BUILD_TOOLS) #define MA_NO_FLAC #define MA_NO_ENCODING #define MA_NO_MP3 #define MA_NO_WAV -#endif +#endif /* !defined(DEMO_BUILD_TOOLS) */ #define MINIAUDIO_IMPLEMENTATION #include "miniaudio.h" #include "synth.h" @@ -18,10 +18,10 @@ static ma_device g_device; -void audio_data_callback(ma_device *pDevice, void *pOutput, const void *pInput, +void audio_data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uint32 frameCount) { (void)pInput; - float *fOutput = (float *)pOutput; + float* fOutput = (float*)pOutput; synth_render(fOutput, (int)frameCount); } @@ -48,7 +48,7 @@ void audio_start() { } } -#ifndef STRIP_ALL +#if !defined(STRIP_ALL) void audio_render_silent(float duration_sec) { const int sample_rate = 32000; const int chunk_size = 512; @@ -62,9 +62,10 @@ void audio_render_silent(float duration_sec) { total_frames -= frames_to_render; } } -#endif +#endif /* !defined(STRIP_ALL) */ -void audio_update() {} +void audio_update() { +} void audio_shutdown() { ma_device_stop(&g_device); -- cgit v1.2.3