From 405a56822b66b3dd52daea523906ab4bc883158e Mon Sep 17 00:00:00 2001 From: zeim839 Date: Sun, 24 Nov 2024 22:19:28 -0500 Subject: [PATCH] fix brace formatting --- src/audio/apu.c | 3 ++- src/joypad.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/audio/apu.c b/src/audio/apu.c index 1a3d4c6..c47ea20 100644 --- a/src/audio/apu.c +++ b/src/audio/apu.c @@ -161,7 +161,8 @@ void half_frame(apu_t* apu) noise->l--; } -void sample(apu_t* apu) { +void sample(apu_t* apu) +{ float sample = biquad_apply(&apu->aa_filter, apu_get_sample(apu)); sampler_t* sampler = &apu->sampler; sampler->counter++; diff --git a/src/joypad.c b/src/joypad.c index 979e070..a6c3955 100644 --- a/src/joypad.c +++ b/src/joypad.c @@ -12,11 +12,11 @@ joypad_t joypad_create(uint8_t player) uint8_t joypad_read(joypad_t* joy) { - if(joy->index > 7) + if (joy->index > 7) return 1; uint8_t val = (joy->status & (1 << joy->index)) != 0; - if(!joy->strobe) + if (!joy->strobe) joy->index++; return val;