Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Feb 8, 2025
1 parent a952b52 commit 3a4157c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/fluid_sdl3.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ SDLAudioCallback(void *data, SDL_AudioStream *stream, int add_len, int len)

while(add_len > 0)
{
buf_len = SDL_min(add_len, dev->period_size * dev->frame_size);
int buf_len = SDL_min(add_len, dev->period_size * dev->frame_size);
dev->write_ptr(dev->synth, buf_len / dev->frame_size, dev->render_buf, 0, 2, dev->render_buf, 1, 2);
SDL_PutAudioStreamData(stream, dev->render_buf, buf_len);
add_len -= buf_len; /* subtract what we've just fed the stream. */
Expand Down

0 comments on commit 3a4157c

Please sign in to comment.