Skip to content

Commit

Permalink
fix brace formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zeim839 committed Nov 25, 2024
1 parent e5be1de commit 405a568
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/audio/apu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
4 changes: 2 additions & 2 deletions src/joypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 405a568

Please sign in to comment.