From d18281b6bfc291f246852be1cc7de948edd67a06 Mon Sep 17 00:00:00 2001 From: jacob Date: Thu, 31 Jul 2025 08:19:48 -0500 Subject: [PATCH] formatting --- src/gp/gp_core_dx12.c | 5 ++--- src/mixer/mixer_core.c | 9 ++------- src/platform/platform_core.h | 12 ++++++------ 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/src/gp/gp_core_dx12.c b/src/gp/gp_core_dx12.c index c917861d..e3d6a97f 100644 --- a/src/gp/gp_core_dx12.c +++ b/src/gp/gp_core_dx12.c @@ -52,11 +52,10 @@ #endif #if RtcIsEnabled -# define DX12_DEBUG 1 -# define DX12_SHADER_DEBUG 1 +//# define DX12_DEBUG 1 +# define DX12_DEBUG 0 #else # define DX12_DEBUG 0 -# define DX12_SHADER_DEBUG 0 #endif /* ========================== * diff --git a/src/mixer/mixer_core.c b/src/mixer/mixer_core.c index ae2e50f4..fc565eb3 100644 --- a/src/mixer/mixer_core.c +++ b/src/mixer/mixer_core.c @@ -143,7 +143,7 @@ void M_ReleaseTrackLocked(P_Lock *lock, M_Track *track) //////////////////////////////// //~ Mixer control - /* TODO: Rework interface to be command based instead of directly modifying tracks. */ +/* TODO: Rework interface to be command based instead of directly modifying tracks. */ M_Handle M_PlaySound(SND_Sound *sound) { @@ -299,7 +299,6 @@ M_PcmF32 M_MixAllTracks(Arena *arena, u64 frame_count) f32 speed = MaxF32(0, desc.speed); //- Determine sample range - u64 source_samples_count = 0; if (source_is_stereo) { @@ -340,8 +339,7 @@ M_PcmF32 M_MixAllTracks(Arena *arena, u64 frame_count) }; //- Resample - - /* Transform 16 bit source -> 32 bit stereo at output duration */ + /* Transform 16 bit source -> 32 bit stereo at output duration */ { __profn("Resample"); f32 *out_samples = mix_pcm.samples; @@ -398,7 +396,6 @@ M_PcmF32 M_MixAllTracks(Arena *arena, u64 frame_count) } //- Spatialize - if (desc.flags & M_TrackFlag_Spatialize) { __profn("Spatialize"); @@ -455,7 +452,6 @@ M_PcmF32 M_MixAllTracks(Arena *arena, u64 frame_count) } //- Mix into result - for (u64 i = 0; i < mix_pcm.count; ++i) { result.samples[i] += mix_pcm.samples[i] * desc.volume; @@ -463,7 +459,6 @@ M_PcmF32 M_MixAllTracks(Arena *arena, u64 frame_count) } //- Update track effect data - { __profn("Update track effect data"); P_Lock lock = P_LockE(&g->mutex); diff --git a/src/platform/platform_core.h b/src/platform/platform_core.h index 1c616504..33118341 100644 --- a/src/platform/platform_core.h +++ b/src/platform/platform_core.h @@ -84,7 +84,7 @@ Struct(P_FileMap) }; //////////////////////////////// -//~ Watch types +//~ Watch info types typedef i32 P_WatchInfoKind; enum { @@ -239,18 +239,18 @@ Struct(P_WindowEvent) { P_WindowEventKind kind; - /* P_WindowEventKind_BUTTON_DOWN */ - /* P_WindowEventKind_BUTTON_UP */ + /* P_WindowEventKind_ButtonDown */ + /* P_WindowEventKind_ButtonUp */ P_Btn button; b32 is_repeat; - /* P_WindowEventKind_TEXT */ + /* P_WindowEventKind_Text */ u32 text_codepoint; - /* P_WindowEventKind_CURSOR_MOVE */ + /* P_WindowEventKind_CursorMove */ Vec2 cursor_position; - /* P_WindowEventKind_MOUSE_MOVE */ + /* P_WindowEventKind_MouseMove */ Vec2 mouse_delta; };